Started by
alidraco
on
Topic category: Advanced modding
I was looking at the procedures and I saw that there was no way to deal Infinite damage. I just would like to know if there was a way to insta-kill an entity when it's hit by the sword.
There is a way, using procedures. Use the procedure block "deal (number) damage to (entity) type (generic)"
Then take "Random (0,1)" and click on it and select ∞ and use it in place of the (number) in the "deal (number) damage to (entity) type (generic)" procedure block.
This procedure will be triggered from the sword element Trigger page with the trigger "When living entity is hit with tool"
Thanks but is there any way to make it show that it deals infinite damage.
You want to show the number of the Damage you dealt with the Sword?
I have by the way another Option to make Infinite Damage and is Dynamic.
Replace the "Random(0.1)" Block to this Block "Max Health of Event/target entity".
This make the Sword Damage exact Amount of Health what the Attacked Entity Max Health has.
Thanks but still I want to know if there is any way to make the attack damage say infinite even if I have to dig around in the code?
You want to make a Tooltip for your Custom Sword that says Infinite Attack Damage?
Yes
Just edit "Special Information about the tool" at the First Section where you setup your Sword.
if you want to make advanced Tooltips visit this topic.
Yeah but I want it to be where the attack damage is
I found a video about Infinity Attack Damage. You need to edit the Attack Damage and you won't need the Procedure for it.
https://www.youtube.com/watch?v=-u8AnEjO6pE
I looked at the command and I don't know how it says Infinite attack damage