Started by
Cryptic_Fanta
on
Topic category: Help with Minecraft modding (Java Edition)
I have everything I want just how do I make sure the player is holding the pickaxe and if the player is the block will break?
Topic category: Help with Minecraft modding (Java Edition)
I have everything I want just how do I make sure the player is holding the pickaxe and if the player is the block will break?
i might have a solution, but I'm not sure i entirely understand... the block is unbreakable like bedrock? if so, you'd go into "when entity swings item" check if entity is a player, if it is, check where the player is looking (Id use raytrace distance x y z) and check if the block there is the block that you want, if so, break it and drop the block, or just replace it with air
well I mean like if the player is holding the pickaxe and right clicks the block it will break thats the part I don't know how to do