Newton's Apples

Quick rating

Community listing page, reviews may not be monitored by the author.

Newton's Apples

No reviews yet

You awoke in the woods and found yourself surrounded by apples.

Mod Loaders
Minecraft

About

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

  1. 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.
  2. Configurable Mechanics

    • Drop Probability: Adjust the likelihood of an apple drop via 1 / PossibilityNumber (default: 1/1500 per 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.
  3. Optimized Performance

    • Uses UUID tracking to ensure no duplicate or conflicting entities.
    • Cleanup system prevents lag from excessive item entities.
  4. Logging & Debugging

    • Provides in-game logging (console/client) to track apple spawns and cleanups.

Technical Implementation

  • Mixin Integration: Hooks into ServerWorld to 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

  1. Download the mod JAR.
  2. Place it in your Minecraft mods folder.
  3. Adjust configs as desired.

Experience Minecraft with a touch of Newtonian physics! 🍎🌳