Open main menu
Home
Random
Log in
Settings
About Forge Community Wiki
Disclaimers
Forge Community Wiki
Search
Changes
← Older edit
Newer edit →
Events/BlockEvent
(view source)
Revision as of 13:32, 20 April 2021
5 bytes removed
,
13:32, 20 April 2021
m
no tag check
Line 14:
Line 14:
public void onBlockBreak(final BlockEvent.BreakEvent event)
public void onBlockBreak(final BlockEvent.BreakEvent event)
{
{
−
if (!world.isClientSide() && event.getState().is(
Tags.
Blocks.SAND)) // use the base event to get the state and see what it is
+
if (!world.isClientSide() && event.getState().is(Blocks.SAND)) // use the base event to get the state and see what it is
{
{
event.setExpToDrop(10); // change the amount of experience we'll be dropping
event.setExpToDrop(10); // change the amount of experience we'll be dropping
EERussianguy
16
edits