MeinCtutW Posted October 29, 2019 Share Posted October 29, 2019 Hello, I wanted to improve the spikes a little on my server: say more life. I have it with <configs> <set xpath="/materials/material[@id=MtrapSpikesWood]/property[@name=MaxDamage]/@value">500</set> <set xpath="/materials/material[@id=MtrapSpikesIron]/property[@name=MaxDamage]/@value">1000</set> </configs> but somehow, zero changes. Vlt someone has an idea what I'm doing wrong and can give me a hint. Link to comment Share on other sites More sharing options...
psouza4 Posted October 29, 2019 Share Posted October 29, 2019 Your code is modifying the health of the blocks affected by the material you're changing, i.e.: how much damage they can take from players and enemies until the blocks are destroyed. Is this what you intended? If you are trying to increase how much damage these traps do, you want to modify the blocks directly: <configs> <set xpath="/blocks/block[@name=trapSpikesWoodMaster]/property[@name=Damage]/@value">66</set> <set xpath="/blocks/block[@name=trapSpikesScrapIronMaster]/property[@name=Damage]/@value">66</set> <set xpath="/blocks/block[@name=trapSpikesNew]/property[@name=Damage]/@value">10</set> <configs> This example doubles the damage of all spikes in the game. Link to comment Share on other sites More sharing options...
MeinCtutW Posted October 29, 2019 Author Share Posted October 29, 2019 Thanks for the answer i want to endure the traps more Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.