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 18:28, 30. Aug 2019
Joined Feb 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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?

0Upvote this forum topic
Last seen on 18:51, 30. Nov 2019
Joined Dec 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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

 

0Upvote this forum topic
Last seen on 18:28, 30. Aug 2019
Joined Feb 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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?

0Upvote this forum topic