Apples In Trees MCPEDL
Apples In Trees
A complete Minecraft Bedrock addon that adds naturally spawning apple trees, a unique custom trader, golden-apple trees, craftable saplings, placeable fruit blocks, and scripted growth mechanics β designed for Bedrock 1.21.90+.
π³ Overview
Apples In Trees brings organically integrated fruit mechanics into Minecraft: trees spawn across the world, a friendly trader offers unique deals, fruits grow through multiple visual stages, and players can harvest apples or collect entire fruit blocks for decoration. The addon combines feature rules, .mcstructure templates, and robust JS handlers to deliver a vanilla-friendly experience.
β¨ Core Features
- Natural tree generation: New
apple_treeandapple_tree_grownstructures spawn naturally viafeature_rulesandweighted_random_feature. - New Custom Mob: The Apple Wandering Trader, a friendly mob that spawns in plains biomes and offers unique, apple-themed trades.
- Golden Apple Trees: Rare trees that yield golden apples β targeted to mountain biomes using both
mountainandmountainstags. - Placeable fruit blocks: Apple and golden-apple blocks (with
block_placer) for decoration, storage and farming. - Craftable saplings: Recipes allow crafting
apple_saplingandgolden_apple_sapling(apple/golden_apple + oak sapling) so you can grow orchards. - Scripted growth system: JavaScript handlers manage random ticks, structure loading, fruit growth stages and drop cooldowns (e.g.
appleintree:placer_de_estrutura,appleintree:growth_handler). - Three visual growth stages: Fruits visually progress from sprout β mid β ripe before they can be harvested.
- Interactive harvesting: Right-click/tap to harvest ripe fruit; use
shearsto obtain the fruit block itself.
π§ The Apple Wandering Trader To complement the new apple economy, this addon introduces the Apple Wandering Trader. This custom mob brings the world to life, providing a way for players to buy and sell apple-related resources.
Behavior & Spawning: Spawns naturally and randomly in plains biomes. He wanders the world like a standard trader but is designed as a simple and stable entity focused purely on trading, without complex villager AI like breeding or sleeping.
Trading: Offers a custom trade table where players can sell apples, saplings, and wood for emeralds, or spend their emeralds on valuable items like Golden Apples.
π¦ Items, Blocks & Recipes
Items & blocks
appleintree:apple_block_itemβ placeable apple block.appleintree:golden_apple_block_itemβ placeable golden-apple block.appleintree:apple_sapling_item,appleintree:golden_apple_sapling_itemβ saplings to plant trees.appleintree:apple_wandering_spawn_eggβ spawn egg for the custom trader.
Crafting
- Shaped recipes:
8 Γ apple + oak_sapling β apple_sapling. - Shaped recipes:
8 Γ golden_apple + oak_sapling β golden_apple_sapling.
π Spawning & Biomes
- Common apple trees: Spawn in
forest,flower_forest,bee_habitatandplainsviaapple_tree_generation_rulewithscatter_chanceandjittered_grid. - Golden apple trees: Spawn in mountain biomes β both legacy and modern tags (
mountainandmountains). - Apple Wandering Trader: Spawns rarely in
plainsbiomes, controlled by customspawn_rulesto ensure it's a special encounter. - Placement resilience: block_allowlist includes grass, dirt, moss, stone, gravel, and snow so trees can spawn on slopes and peaks (adjustment_radius helps find nearby flat spots).
βοΈ Growth & Harvesting Mechanics
- Random-tick growth: JS handlers increment fruit growth state on random ticks until the maximum stage.
- Harvest: Right-click/tap on ripe fruit to receive the item (
minecraft:appleorminecraft:golden_apple). The fruit resets to stage 0. - Shears interaction: Using
shearson a fruit block yields the corresponding block item instead of the fruit β ideal for decoration. - Cooldowns & stability: Harvesting includes cooldown protections to avoid duplicate drops or abuse.
π§ Technical Implementation
- Custom Entity: The
appleintree:apple_wanderingmob uses a dedicated behavior file to manage its AI and a client entity file for its appearance and animations. - Structures:
structures/apple_tree.mcstructureandstructures/apple_tree_grown.mcstructureare used bystructure_template_featureentries. - Feature rules:
feature_rules/*.jsoncontrol where and how often trees appear, using heightmap queries for accurate surface placement. - Weighted features:
weighted_random_featuremixes normal and grown variants for variety. - Script API: Uses
@minecraft/serverfor block handlers, item spawning, command execution (with safe checks) and permutation/state management. - Asset pipeline: Custom geometries for each growth stage and icons for items are included in the resource pack.
π οΈ Installation & Quick Setup
- Install and enable both the Behavior Pack and the matching Resource Pack in your world.
- Ensure the
manifest.jsondependency entries include the resource pack if you use custom blocks. - Recommended Minecraft Bedrock version: 1.21.90+.
π Troubleshooting
- Trees or Trader not appearing? Generate new chunks after enabling the pack, confirm both BP and RP are active, and ensure youβre on a supported Bedrock version.
- Mountain trees missing? Verify
stone/gravel/snoware present in theblock_allowlist. Temporarily increasescatter_chancefor testing. - Structure placement issues? Test .mcstructure manually with
/structure loadand/structure placeto verify geometry and origin alignment. - Customization: Edit
feature_rules(for trees) andspawn_rules(for the trader) to adjust rarity and biome placement to suit your server or world.
π¦ Compatibility
Designed and tested for Minecraft Bedrock 1.21.90+. Some feature rules and script APIs may not work on older versions.
Made with β€οΈ by HallesNew
Apples In Trees adds natural apple trees, golden apple trees, craftable saplings, placeable fruit blocks, and a robust scripted growth system.