• Hey! Register here to create your account, engage with the community, and talk about what is new!

Coding help please

benpeled

New member
Joined
May 3, 2021
Messages
4
Reaction score
1
Idea:
player1 summons TNT.
player2 gets killed by TNT.
Death message: Player2 was killed by Player1's TNT

what I did was give the TNT a tag:
"%default's TNT"
but I can't seem to use it in a message
 

ARMcPro

Forum adept
Overlord
Joined
Oct 20, 2020
Messages
1,256
Reaction score
353
Can you try to name the tnt %default and send message %damager on this event?
1662199627407.png
If it works, you can check the if Event Damage game value is equal or more than the player's health, it means the player died
(the mob kill player event only triggers for mobs so it wont trigger for the tnt)
 
Top Bottom