Posted September 24, 20187 yr I'm trying to make torches burn out on my mod's moon dimension. So far I have this code. @Mod.EventBusSubscriber public class BlockHandler { @SubscribeEvent public static void onPlace(BlockEvent.PlaceEvent event) { if(event.getPlayer().dimension == GundamDimensions.moonID) { if(event.getWorld().getBlockState(event.getPos()).getBlock() == Blocks.TORCH) { } } } } The official YouTuber Spaceboy Ross
September 24, 20187 yr 5 minutes ago, Spaceboy Ross said: I'm trying to make torches burn out on my mod's moon dimension. So far I have this code. You'll have to make your own block that is the unlit torch. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
September 27, 20187 yr I did this by creating both a lit and unlit torch block. The lit torch block was a ticking tile entity that kept track of how long it had left before it burned out.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.