Started by
Axle 'The Reap…
on
Topic category: Advanced modding
Two things:
- How would you add a procedure that checks if the player has an item in their inventory when you punch a mob, then removes previously mentioned item and causes an explosion at the mob that was hit?
- how would you create a stacking effect the increases whenever you take damage?
Also, with #2, you have to be holding a specific item.
1. Do you have to punch any mob or a specific mob?
I don't remember if there global triggers/procedure triggers for this, anyway to check for an item in inventory use this:
If has player item in inventory (item)
do something
And to remove it
Remove (item) from player's inventory
I think you know how to cause an explosion... Just use the "explode" procedure block
2. This will be possible with MCreator 1.8.3. Anyway, to check if the player has an item in hand, use this:
If [(item in entity main hand) = (item)]
do something
Causing an explosion and removing items I know how to do, but the problem arises with checking for the item. It checks the inventory of the mob you hit instead of your own. As for the off-hand/main-hand, it does the same as checking the entity you're fighting.
Then I have no ideas :(
how about the stacking strength effect?