Skip to content

Resources Leaves

Resources Leaves are the blocks that form the canopy of a Resources tree. They drop Leaf Fragments on decay and are tinted to the color of their resource type.

Variants

Block IDCorresponding Sapling
resourcestrees:resources_oak_leavesResources Oak Sapling
resourcestrees:resources_spruce_leavesResources Spruce Sapling
resourcestrees:resources_birch_leavesResources Birch Sapling
resourcestrees:resources_jungle_leavesResources Jungle Sapling
resourcestrees:resources_acacia_leavesResources Acacia Sapling
resourcestrees:resources_dark_oak_leavesResources Dark Oak Sapling
resourcestrees:resources_cherry_leavesResources Cherry Sapling
resourcestrees:resources_pale_oak_leavesResources Pale Oak Sapling

Drop Behavior

Natural Decay or Broken Without Silk Touch / Shears

DropCondition
Leaf Fragment (primary)random < leafDropChance
Leaf Fragment (secondary)random < leafDropChance / 2
Resources Saplingrandom < saplingDropChance / 2

Shears or Silk Touch

Drops the leaves block with its resource type component intact. No fragments are produced.

Silk Touch Leaves

Leaves collected with Silk Touch or Shears can be re-placed as decorative blocks and retain their resource type and tint color.

Loot Table

The loot table for all Resources Leaves is set to shears_or_silk_touch_only_drop. All other drop logic (fragments, saplings) is handled in code by the block's getDrops() method.

Visual Appearance

Resources Leaves use a BlockTintSource (resourcestrees:resources_type_tint) that reads the ResourcesTypesBlockEntity and returns the type's color value. If no type is assigned, the block renders with a white tint.

Item tinting uses ResourcesTypeTintSource, a custom ItemTintSource registered as resourcestrees:resources_type_tint.

Block Entity

Each placed Resources Leaves block has a ResourcesTypesBlockEntity synchronized to clients:

json
{
  "type": "resourcestrees:diamond"
}

Tags

Resources Leaves are registered in:

  • minecraft:leaves block tag

All Resources Leaves are compostable with a 30% chance.

Flammability

PropertyValue
Flammability60
Fire Spread Speed30

Both values match vanilla leaves.

Released under the All Rights Reserved License.