Started by
Alanek2012
on
Topic category: Advanced modding
I wanted to make a ability that if you hit a mob with a item it will kill a player or something like that.. Im new to MCreator and i dont know some things in it.. Thanks!
Topic category: Advanced modding
I wanted to make a ability that if you hit a mob with a item it will kill a player or something like that.. Im new to MCreator and i dont know some things in it.. Thanks!
TEXT: Make the item, then you can make the prodecal, I think there is a exicute command block somewhere. Then you can save the prodecal and assign it to the item.
INSTA KILL: Set the damage to something like 10,000 if you want it to kill the ender dragon in 1 hit.
Kill ALL: do the exicute command block and do "kill @a".
IMPORTANT: if it deals damage then make it a tool and then set it to weapon.
Anything I missed?
KILL ALL Variations: @a is all players, @p is a random player, @e is all players and mobs.
Ok thanks!
But another question.. Where was the element for "if attacked by" player "with" tool? Do you guys have that?
on global triggers
entity is hurt global trigger
if source entity = type Player
etc etc
oh and if Source entity is type Player AND item in main hand of source entity = ITEM
etc etc