We are trying to find a way to disable the block damage from creeper explosion, while also allowing everything else to function. We want them to damage us (as stupid as that sounds), but we dont want them to damage blocks. You might be thinking "/gamerule mobgrief false", we dont want that because we want villagers to farm aswell. Is there any work around that allows creepers to still damage players, but not the ground, and allow villagers to farm?
you could try to change the values for its explosion in the world file to a strength of 1 which would destroy only the least resistant objects mostly dirt or 0 which might make it destroy no blocks
Rollback Post to RevisionRollBack
Where am i who am i who are you what is this blocky place
That is a good idea, but a command would be best for us since nobody actually has the world file. We would have to spend about a day or two just downloading and uploading the change.
As far as I know there is no way in vanilla to just change the explosion power of creepers unless you use commands, and if you do this you'll also change the damage that they deal to players since both are directly related*, unless you modify the way explosions themselves work (e.g. modify the code for explosions to disable block damage; if you still want TNT to work you can check to see if the entity causing the explosion is a creeper, or have creepers use a custom version of the code). Editing the save files will also not work - not only would you need to exhaustively search through the region files (1024 chunks per region) to find every creeper entity it would only affect those in the world at the time; they will soon despawn and be replaced with new ones using the vanilla defaults.
*The formula for maximum entity damage is (power * 16 + 1), which gives 49 for the default of 3; if power is set to 0 damage will be only 1. The distance over which damage is dealt is (power * 2), or 6 blocks for the default of 3 and 0 for a power of 0 for no damage actually being dealt (which will also cause a division by 0 in the code so the results may be undefined). The block damage radius is simply (power).
We are trying to find a way to disable the block damage from creeper explosion, while also allowing everything else to function. We want them to damage us (as stupid as that sounds), but we dont want them to damage blocks. You might be thinking "/gamerule mobgrief false", we dont want that because we want villagers to farm aswell. Is there any work around that allows creepers to still damage players, but not the ground, and allow villagers to farm?
you could try to change the values for its explosion in the world file to a strength of 1 which would destroy only the least resistant objects mostly dirt or 0 which might make it destroy no blocks
Where am i who am i who are you what is this blocky place
That is a good idea, but a command would be best for us since nobody actually has the world file. We would have to spend about a day or two just downloading and uploading the change.
As far as I know there is no way in vanilla to just change the explosion power of creepers unless you use commands, and if you do this you'll also change the damage that they deal to players since both are directly related*, unless you modify the way explosions themselves work (e.g. modify the code for explosions to disable block damage; if you still want TNT to work you can check to see if the entity causing the explosion is a creeper, or have creepers use a custom version of the code). Editing the save files will also not work - not only would you need to exhaustively search through the region files (1024 chunks per region) to find every creeper entity it would only affect those in the world at the time; they will soon despawn and be replaced with new ones using the vanilla defaults.
*The formula for maximum entity damage is (power * 16 + 1), which gives 49 for the default of 3; if power is set to 0 damage will be only 1. The distance over which damage is dealt is (power * 2), or 6 blocks for the default of 3 and 0 for a power of 0 for no damage actually being dealt (which will also cause a division by 0 in the code so the results may be undefined). The block damage radius is simply (power).
TheMasterCaver's First World - possibly the most caved-out world in Minecraft history - includes world download.
TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?
Noob terms please, lol.