-
Content Count
8 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout Trhod177
-
Rank
Tree Puncher
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
I want to make it so the different tools give different drops and i saw other people saying to do it this way.
-
Woops i dont know why that happened but the link is corrected Link
-
Trhod177 changed their profile photo
-
I am trying to change what items are dropped by certain blocks when i tested it, it crashed with an error about a ticking entity. CrashLog My EventHandlerClass(link updated)if necessary
-
[1.12.2] How do i stop my block from dropping itself [Solved]
Trhod177 replied to Trhod177's topic in Modder Support
Thanks that fix it.. -
Ok then how do distinguish between sand and redsand
-
what do you mean by
-
Trhod177 started following [1.12.2] Help with modifying block drops
-
I've been trying to change the onHarvestBlock event to change what sand and red sand drops when you mine it, normal sand works fine but i cant get red sand to drop the proper item. Here is my code @Mod.EventBusSubscriber public class PocketSandEventHandler { @SubscribeEvent public void onHarvestBlock(BlockEvent.HarvestDropsEvent event) { final EntityPlayer PLAYER = event.getHarvester(); if(null == PLAYER || null == PLAYER.getHeldItemMainhand()) return; if(ConfigHandler.overridesanddrops == true) { if(event.getState().getBlock() == Blocks.SAND) { event.getDrops().add(new ItemStack(ItemInit.sandpile, 4)); event.getDrops().remove(0); } } if(ConfigHandler.overrideredsanddrops == true) { if(event.getState().getBlock() == Blocks.SAND.getStateFromMeta(1)) { event.getDrops().add(new ItemStack(ItemInit.redsandpile, 4)); event.getDrops().remove(1); } } } }