Started by
Skittey
on
Topic category: Help with Minecraft modding (Java Edition)
Hi i just updated my Mcreator version from 2020.4 to 2020.5 and saw that you can make totems but i dont know how or where so if you could help id be very Happy thank you!
You can display totem-like animation in 2020.5 using procedures
global trigger(on player die):
if player has totem:
>>cancel trigger
>>set player HP to 1
>>play totem-like animation (totem item)[client side only]
>>give player effects ya like
wow it works im so stupid
it doesn't work for me, everytime the totem is used, all mobs become unkillable (immortal)
Shadow, make sure the effects you're applying to the totem's procedure only target the player, and not all mobs.
i can't find the global trigger "on player die"
Thank you this is what I need for a second life mod
Global trigger can be found at the topmost block 'Event trigger' (this one is always placed when you make a new procedure) and the trigger is called 'Entity dies'
My problem is that I'm not seeing any totem-like animation, did I get the order wrong or something?
My order is this:
>>Cancel event
>>Extinguish entity
>>Set to 1 hp
>>Show totem-like animation
>>Add effects
>>set item to air
Try it without the 'set item to air' and move the 'show totem-like effect' to the bottom. If that works, then you will likely need to wait for the animation before you remove the item, so ensure that the player cannot activate the totem again until the totem vanishes to be safe from the code looping twice, unless there is a debounce feature I'm unaware of.
where is the cancel event icon
Hello, I was able to make a totem procedure that worked so here it is: https://www.mediafire.com/file/upgih4mtzzijqrk/CustomTotem.ptpl/file
(Replace the Totem in the code with your item)
For some reason whenever i hold the totem it activates, instead of on death
Never mind Its from something in my properties