#How to make an custom totem?
1 messages · Page 1 of 1 (latest)
Can't make custom totem. Maybe player.json or scripting
I had the same issue, what I did is just used fatal inside damage sensors to check if player receives any damage which could kill him (deals_damage is set to false), this sensor fires an event which should trigger a set of command of /damage @s 19 and other totem like effects you may need, this step is required only if you want to actually deal any damage to the player, because if you just set deals damage to true, the player would die too quickly for the event to even fire, it would end up firing when they respawn
I created a custom totem with damage sensor
In player.json file, you should create a damage_sensor with these filters:
"Has_damage" and "has_equipment"
In "has_damage", "value" should be "fatal"
hey would you possibly be able to send me the file on how you did that or tell me how you did it (especially in the Scripting APi part) as I have been trying to do it for a couple weeks but failed, aswell as I would want to make a totem but when used you still die but acts like a keep inventory
I guess it's not possible with API yet
so you only used the player.json for your custom totem?
Yup, and a totem fiel to the item
and your totem worked where it revived the player by only using the player.json?
but would you possibly be able to send me the file you used (for player.json) on how you made the player check if the amount of damage dealt to itself is fatal and if they have the totem in there main/off-hand and it revives them?
or atleast tell me how you were able to achieve it