Using packets, I want to create a customizable damage system. I have been looking at some tutorials. But none of them tell me really how to set a packet to a certain amount. I have this packet
Which gets the damage of an attack, I want to set this to whats in my command.
Code:
generic.attack_damage
Which gets the damage of an attack, I want to set this to whats in my command.
Code:
command /damage [<text>]:
trigger:
# Set Damage Here
on damage:
set {_packet} to recive packet generic.attack_damage from attacker
send victim packet {_packet}