Description
Newton Mod for Minecraft
Version: 1.16.5+ (Forge)
Mod ID: newton
Overview
The Newton Mod introduces a dynamic physics-inspired mechanic to Minecraft, simulating the natural falling of apples from non-persistent leaves (e.g., oak, birch, etc.). This mod enhances immersion by allowing apples to occasionally drop beneath leaves, mimicking real-world gravity. However, to prevent excessive item accumulation, the mod includes configurable limits and auto-cleanup mechanics.
Key Features
Natural Apple Drops
- Non-persistent leaves (vanilla or modded) have a small chance to drop an apple below them during random block ticks.
- Apples spawn as item entities at the block position directly beneath the leaves.
Configurable Mechanics
- Drop Probability: Adjust the likelihood of an apple drop via
1 / PossibilityNumber(default:1/1500per tick). - Max Apple Limit: Set a maximum number of apples allowed in the world (default:
100). Once reached, all generated apples are automatically cleared, and the counter resets.
- Drop Probability: Adjust the likelihood of an apple drop via
Optimized Performance
- Uses UUID tracking to ensure no duplicate or conflicting entities.
- Cleanup system prevents lag from excessive item entities.
Logging & Debugging
- Provides in-game logging (console/client) to track apple spawns and cleanups.
Technical Implementation
- Mixin Integration: Hooks into
ServerWorldto inject custom logic during chunk ticks. - Dynamic UUID Management: Ensures unique entity IDs for spawned apples to avoid conflicts.
- Forge Config: Supports live-reloading of config values (
/config/newton.toml).
Configuration Options
Edit newton-common.toml to customize:
[Newton]
# Maximum apples allowed before auto-cleanup. Set to 0 to disable.
MaxCount = 100
# Drop chance denominator (1 / PossibilityNumber). Higher = rarer.
PossibilityNumber = 1500
Compatibility
- Works with any leaves tagged as
minecraft:leaves(supports modded leaves). - Requires Forge and Mixin framework.
Installation
- Download the mod JAR.
- Place it in your Minecraft
modsfolder. - Adjust configs as desired.
Experience Minecraft with a touch of Newtonian physics! 🍎🌳
