Everything posted by ChargeCore
-
[Solved][1.7.2] Custom Leaves drop not working
coolboy4531, Thank you very much for the reply, works exactly how I wanted it to! Many thanks
-
[Solved][1.7.2] Custom Leaves drop not working
Hello, So I have the current code which, in theory, should change the drops from the leaves to give sticks, however this is not the case. Anyone have experience with this and maybe have a suggestion as to why it doesn't work? Many Thanks @SubscribeEvent public void leaves(HarvestDropsEvent event){ if (event.block == Blocks.leaves) { event.drops.clear(); event.drops.add(new ItemStack(Items.stick, 1)); } }
-
[1.7.2] Stopping a blocks from being broken by fist
How else can you import??? Would this really be the source of the error?
-
[1.7.2] Stopping a blocks from being broken by fist
Thanks for telling me about the code tags If I try this code, import net.minecraftforge.event.world.BlockEvent.BreakSpeed; Eclipse gives me this error: The import net.minecraftforge.event.world.BlockEvent.BreakSpeed cannot be resolved Any ideas what I am doing wrong?
-
[1.7.2] Stopping a blocks from being broken by fist
BlockEvent.BreakSpeed does not exist. I have the following code in an Event Bus yet I am still able to break logs with my fist. Eclipse reports no errors. import net.minecraftforge.event.entity.player.PlayerEvent.BreakSpeed; public void onBreakSpeed(BreakSpeed event) { if (event.block == Blocks.log) { event.newSpeed = -1; } } } PS: How do I make this display as code rather than normal text?
-
[1.7.2] Stopping a blocks from being broken by fist
diesieben07, Thanks for the reply. As I am new to Forge modding, how would I set about doing this, and also, what Event would it be under? Thanks Edward.
-
[1.7.2] Stopping a blocks from being broken by fist
Hello I am aware that this question has probably been asked before but a quick search returned nothing conclusive. How can I do as the title says. Stop a player from breaking a vanilla block with a tool which is at a certain level? I am quite new to modding with forge so please provide some example code. Thanks for taking the time to read this Edward.
IPS spam blocked by CleanTalk.