how do i fix it

Started by samharris on

Topic category: Troubleshooting, bugs, and solutions

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do i fix it

it looks a bit like this

Event trigger - triggered by external call
or when (global trigger): A block is broken
if
Is
Get block at x:
y:
y z:
the same block as
AND
Item in main-hand of
Source entity

= stone pickaxe

 Remove block at x:
x y:
y z:
z and spawn break particles
Spawn dropped item
at x:
xy: y z: z pickup delay:
10 despawn:
AND
Has
Event/target entity in inventory

= Iron Pickaxe


(match item and data components)
else if
Is
Get block at x:
xy: y z:
the same block as
do Remove block at x:
xy:
y z:
z and spawn break particles
Spawn dropped item
at x:
x y: y z: z pickup delay:
10 despawn:
repeat 3 times
do
Spawn dropped item
at x:
xy: y z: z pickup delay:
10 despawn: