How to tell if player breaks block / kills entity?

Started by SourOrange on Mon, 08/19/2019 - 23:10

Topic category: User side tutorials

Last seen on 16:59, 18. Jan 2020
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to tell if player breaks block / kills entity?
Mon, 08/19/2019 - 23:10

I am making a mod and need to add a drop to a block and want to make it so when a player breaks it it has a 1/150 chance to drop the item. how can i tell if the player breaks the block? or kills an entity?

Last seen on 12:51, 3. Apr 2021
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
maybe do it in rare item or…
Tue, 08/20/2019 - 00:40

maybe do it in rare item or if killed then give a chance then if yes palce item at entity

 

Last seen on 16:59, 18. Jan 2020
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
But how could i do that with…
Tue, 08/20/2019 - 14:40

But how could i do that with mobs already in the game like creepers and skeletons?

Last seen on 17:37, 28. Mar 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
just do this:   tigger on…
Thu, 03/04/2021 - 20:25

just do this:

 

tigger on hit with weapon:

if not is event/target entity alive

do: (whater you wanna do)