Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

MAKAPKA's Achievements

Tree Puncher

Tree Puncher (2/8)



  1. You're right! The function I meant is the same with the propagating block.
  2. Is it possible to do this inside the Custom Block I'm going to turn the Vanilla Blocks into? I need to change Vanilla Grass Block to Custom Dried Grass Block, provided it has Lava or Fire next to it. Maybe it's easier to add a Custom Dried Grass Block to the world generation and make it propagate?
  3. ModFeatures.class = Custom Features .class in My Own Mod ModEvents.class = Custom Events .class: package net.makapka.blacksoilmod.event; import net.minecraftforge.event.world.BlockEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.makapka.blacksoilmod.BlackSoilMod; @Mod.EventBusSubscriber(modid = BlackSoilMod.MOD_ID) public class ModEvents { @SubscribeEvent public static void turnToDryGrassBlock(BlockEvent event) { } } ModTags.class = Custom Tags .class: package net.makapka.blacksoilmod.util; import net.makapka.blacksoilmod.BlackSoilMod; import net.minecraft.resources.ResourceLocation; import net.minecraft.tags.BlockTags; import net.minecraft.tags.ItemTags; import net.minecraft.tags.TagKey; import net.minecraft.world.item.Item; import net.minecraft.world.level.block.Block; public class ModTags { public static class Blocks { // Custom Tag: public static final TagKey<Block> DRY_GRASS_REPLACEABLE = tag("dried_grass_replaceable"); private static TagKey<Block> tag(String name) { return BlockTags.create(new ResourceLocation(BlackSoilMod.MOD_ID, name)); } private static TagKey<Block> forgeTag(String name) { return BlockTags.create(new ResourceLocation("forge", name)); } } public static class Items { private static TagKey<Item> tag(String name) { return ItemTags.create(new ResourceLocation(BlackSoilMod.MOD_ID, name)); } private static TagKey<Item> forgeTag(String name) { return ItemTags.create(new ResourceLocation("forge", name)); } } } dried_grass_replaceable.json : { "replace": false, "values": [ "minecraft:grass_block", "minecraft:podzol", "minecraft:mycelium" ] }
  4. How can I change Vanilla Minecraft Blocks that have a Custom Tag to my Custom Block using Random Ticking? Should I do this with ModFeatures or ModEvents? Differences between Features and Events? I already have ModTags and Custom Tag.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.