• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Set Bullet Block Damage to Zero (Remove bullet damage to blocks revisited)

Hey there. A while back I tried to set bullet block damage to 0 and was met with failure. I and at least one other person here tried multiple ways but somehow the projectiles would always do 1 damage to blocks, no matter what we did. Here's the thread from that time:







As for me, my goal was to minimize terrain damage/deformation, and limit it to only tools (eg shovels, pickaxes, etc). Unfortunately, I never achieved that goal, and punches, stray arrows/bullets, explosives etc would always do 1 damage to blocks, no matter what I did to the XML.

I'd like to post this question again in the hopes that somebody out there knows/can help a brother out. Thanks.

 
1 damage is the lowest you can go for blocks. entities as well. if you want them undamageable, the only way would be changing collisions to not include ranged or arrows. but then you'd be able to shoot through walls. code may be able to do what you're after, but i dont touch the devils work lol... code scurrs me.

 
Thanks for the response. I'm a little bummed that your answer sounds definitive, but I'm kinda relieved that this problem can finally be put to rest.

For posterity, I did try to remove the collision property for terrDirt (as a test), but found that the block didn't have said property. Dirt, terrAsphalt, terrGravel (basically the blocks which I didn't want taking damage from stray shots) didn't have the collision property. I appended this:

<property name="Collide" value="melee"/>


Thinking that this would allow melee but not bullets to hit dirt, as a test. But it seems that didn't work (pulled out crossbow, shot at dirt, still did 1 damage)

As for other solutions, this dude from way back:

https://github.com/stallionsden/stallionsmodlets/tree/main/stallionsdens Anti Block Bullets

Straight up just made entirely new projectiles from scratch (game no longer uses any vanilla ammo). I'd prefer a less vanilla destructive solution, but seeing as the author recently updated the mod to A20, there's at least one last resort for me to consider at the moment.

 
Last edited by a moderator:
Back
Top