Started by
viatrophy997
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, I wanted to create a Void Staff that summons the mobs, tame them instantly and despawn after one minute. Cant seem to make that work and i dont want the minions to surround me when i have a staff in hand or get them a wither effect to mess original mob procedures. Any ideas?
uh,i dont think you can tame them or configure despawnig without fancy spawning stuff but you can always use procedures
I tried to use procedures but don't really know how, most of them dont work.
basically, make a when right clicked procedure for the staff, which summons the minion, depending if you only want one of multiple at a time
multiple: nothing changes
one:
do /kill @e[type=yournamespace:yourmob]
then under that summon your entity
in the entity ai, make it so it only attacks hostile mobs so its like "only attack mobs of type: zombies, skeletons, whatever
and also when it spawns make a prodecure for when it spawns saying that itll wait 1200 ticks on server side before doing /kill @e[type=yournamespace:yourmob]