๐
pasted-code-1788095749617.txt
txt
158 lines
โถ
TWO NEW TREES (Black Tree & White Tree)
These two new tree types generate only in a new, rare biome (described in Section 4). Both trees behave like vanilla trees (can be grown from saplings, drop logs and leaves, etc.) and provide full wood-block families.
TREE 1: Black Tree (Ebony-like)
Visual Appearance:
Trunk/Log: Completely black (hex #1A1A1A) with a rough bark texture (similar to Spruce log but darker). When stripped, the inside is also black.
Leaves: Pure white (hex #FFFFFF) โ looks like a Spruce tree shape (conical) but with white foliage.
Sapling: A small black stem with a white leaf top.
In-Game Names:
Log: "Black Tree Log"
Stripped Log: "Stripped Black Tree Log"
Wood: "Black Tree Wood" (bark all sides)
Stripped Wood: "Stripped Black Tree Wood"
Planks: "Black Tree Planks" (color: very dark grey/black, hex #2B2B2B)
Leaves: "Black Tree Leaves" (white, decaying like normal leaves)
Sapling: "Black Tree Sapling"
Wood Block Family (all crafted from Black Tree Planks):
Black Tree Stairs
Black Tree Slab
Black Tree Fence
Black Tree Fence Gate
Black Tree Door (wooden door, opens by hand, not redstone-only)
Black Tree Trapdoor
Black Tree Pressure Plate (wooden, activates by entities)
Black Tree Button (wooden, pulse length 15 ticks)
Black Tree Sign, Hanging Sign, Boat, and Chest Boat (if supported).
Growth: Can be grown with Bone Meal on the sapling (same as vanilla trees). Sapling requires light level โฅ 9 to grow.
TREE 2: White Tree (Acacia-like)
Visual Appearance:
Trunk/Log: Pure white (hex #F0F0F0) with a smooth bark texture (similar to Birch but whiter). When stripped, the inside is also white.
Leaves: Jet black (hex #0A0A0A) โ the shape is like an Acacia tree (flat-topped canopy, branching) but with dark foliage.
Sapling: A white stem with a black leaf top.
In-Game Names:
Log: "White Tree Log"
Stripped Log: "Stripped White Tree Log"
Wood: "White Tree Wood"
Stripped Wood: "Stripped White Tree Wood"
Planks: "White Tree Planks" (color: very light grey/off-white, hex #E8E8E8)
Leaves: "White Tree Leaves" (black, decaying like normal leaves)
Sapling: "White Tree Sapling"
Wood Block Family (all crafted from White Tree Planks):
White Tree Stairs
White Tree Slab
White Tree Fence
White Tree Fence Gate
White Tree Door (wooden)
White Tree Trapdoor
White Tree Pressure Plate (wooden)
White Tree Button (wooden)
White Tree Sign, Hanging Sign, Boat, and Chest Boat.
Growth: Same as above โ can be bone-mealed, requires light โฅ 9.
SECTION 4: NEW BIOME โ "Black-and-White Forest"
Biome Name: Black-and-White Forest
Appearance:
Terrain: Rolling hills, similar to a dark forest but with a monochrome palette.
Grass Color: Grey (hex #808080) โ all grass blocks, tall grass, and ferns have this grey tint.
Foliage Color: The leaves of both tree types are as described (white and black), but any other foliage (bushes, vines) also appear grey.
Sky Color: Slightly dimmed, but no visual effect other than the fog (see below).
Water Color: Murky grey (hex #6B6B6B) instead of blue.
Weather Conditions (Special):
No rain or snow ever occur in this biome.
Constant, permanent thick fog โ visibility is reduced to 15 blocks maximum. The fog density is very high (like a thick mist), making it hard to see far.
No hostile or passive mobs naturally spawn in this biome (except the special Null mob described in Section 5).
Spawning Rules:
Dimension: Only spawns in the Overworld.
Rarity: Rarer than the Mushroom Fields biome. Generation weight: 1 (compared to Mushroom Fields' 1? Actually Mushroom Fields is very rare. Make it 0.5 weight, so it's even rarer). It can appear in any climate region (plains, forests, etc.) but with extremely low probability.
Trees inside: Both Black Trees and White Trees generate naturally in this biome. They appear in clusters โ sometimes mixed, sometimes separate. The density is moderate (similar to a regular forest).
Ground blocks: The surface is mostly grass blocks (grey), with patches of coarse dirt and grey podzol (custom grey-coloured podzol โ optional, or use regular podzol with grey grass).
Other Features: No villages, no structures, no dungeons spawn in this biome. It is completely empty except for the trees and the Null mob.
SECTION 5: SPECIAL MOB โ "Null" (The Watcher)
Mob Name: Null
Visual Appearance:
Looks exactly like a default Minecraft player model (Steve or Alex) but with a completely black skin texture โ all parts (head, body, arms, legs) are pure black (hex #000000). No visible eyes, mouth, or features โ just a void-black silhouette.
Height: 3 blocks tall (taller than a normal player).
Model: Uses the player model but scaled to 3 blocks.
Behavior and Spawning:
Spawning Conditions:
ONLY spawns in the Black-and-White Forest biome.
It does not spawn naturally during world generation โ it is triggered by player actions (see below).
Passive: It is completely non-aggressive. It does not attack the player, even when hit. It has 10000 HP (health) and is invulnerable to most damage (but you can set it as unkillable if you want; I recommend making it immune to all damage and only disappears).
Initial appearance (when player enters biome): When a player first enters the Black-and-White Forest, there is a 5% chance that a Null will spawn somewhere within 10โ50 blocks of the player. It will just stand still, facing the player's direction, and do nothing. If the player moves closer to within 5 blocks, the Null instantly disappears (without a sound or particle effect).
Sleeping mechanic: If the player attempts to sleep in a bed inside the Black-and-White Forest:
There is a 10% chance that a Null will spawn right next to the player's bed (within 2 blocks) immediately after the player lies down. The Null will appear and then disappear after 2 seconds (it does not break the bed, just appears and fades).
Distance trigger for blocks: If the player moves more than 30 blocks away from certain placed blocks while inside the Black-and-White Forest, the following happens (this is the core "horror" mechanic):
Bed: If the player moves >30 blocks away from their bed, a Null will spawn next to the bed and break the bed (the bed drops as an item). The Null then disappears.
Chest (any type): If the player moves >30 blocks away from a chest (trapped chest, barrel, etc.), there is a 50% chance that half of the items inside the chest will be deleted (vanish) OR the chest itself will break (drop its remaining items). The Null appears briefly near the chest when this happens.
Furnace (blast furnace, smoker): If the player moves >30 blocks away from a furnace, the furnace's fuel and smelting progress are completely erased (the input and output slots become empty). If the furnace is empty, it is broken (drops as an item). The Null appears briefly next to the furnace.
Additional rule: The Null can also spawn randomly in the biome (with a low chance) and just stand still, but the above trigger events are the primary spawn mechanics.
Despawn: The Null never despawns on its own โ it only disappears when a player comes within 5 blocks or after performing its action (breaking a block, etc.). It does not move or chase the player.
Drops: None (it drops nothing when "killed" โ but since it's invulnerable, it cannot be killed).
Sound Effects: The Null emits no sound โ it is completely silent.
END OF PART 2
This content seamlessly integrates with the first mod (Ores and Flowers) to create a larger, more complex mod. All blocks, items, and mobs follow vanilla Minecraft conventions for crafting, mining, and interaction.
Please generate this mod with all described features. Thank you!
Create the Fabric 1.20.4 Gradle project and mod metadata.
Implement both wood families, sapling/tree generation, crafting, and block/item registration.
Register the Black-and-White Forest biome with monochrome effects and tree features.
Implement the Null entity, renderer, biome-entry/sleep/block-distance triggers, and resources.
Created a complete Fabric 1.20.4 project with Gradle configuration and mod metadata.
Added Black Tree and White Tree blocks, saplings, logs, leaves, wood families, boats, chest boats, recipes, models, names, and tags.
Added custom tree generation using spruce-style Black Trees and acacia-style White Trees.
Registered the Black-and-White Forest biome with monochrome colors, no precipitation, empty natural mob spawning, and both tree features.
Added the 3-block-tall invulnerable Null entity with black rendering, biome-entry appearances, sleep encounters, block-distance horror triggers, temporary despawning, and silent behavior.
package com.kodari.monochromeforest;
import com.kodari.monochromeforest.entity.ModEntities;
import com.kodari.monochromeforest.entity.NullEntityRenderer;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.EntityRendererRegistry;
public class MonochromeForestClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
EntityRendererRegistry.register(ModEntities.NULL, NullEntityRenderer::new);
}
}