There are 2 ways to do this.
1. You can give them an effect with /effect. I would suggest using resistance but regeneration will also work (aside from the hurt animations). If you only want to stop them from drowning but nothing else you can use water breathing.
In 1.13+ the command would be
/effect give <entitys> <effect> 1000000 255 true
E.g. all pigs should have water breathing:
/effect give @e[type=pig] water_breathing 1000000 255 true
In 1.12, I think you only have to remove the "give".
The disadvantage of this method is that it will not last forever. 1.000.000 seconds are about 11,5 days, this is normally enough for a singleplayer world but on a server you have to renew the effect every 11 days.
2. You can make the animals invulnerable if you spawn them with a command.
/summon minecraft:pig ~ ~ ~ {Invulnerable:1b}
1
THIS THREAD HAS MOVED, CLICK HERE TO
GO TO NEWEST THREAD.
1
well, guess I have to reset and make a 1.13 version of my world :l
1
OH you bumped your own thread! OH!
1
well, I could help a bit if I new what fps you got before you broke the log, also your minecraft performance will drop no matter what if its using half the located ram, I have 8gb of ram and I set it to 4gb of allocated ram, that way its using half of both rams in my pc (4gbx2 models) then the world only uses about 1950-2000mb of ram and I get 160+fps with stuff set to max in the settings, and I don't have a powerful pc. and all so how old is that world, is it a new one? or old one? does this happen on all your worlds?
1
the ANTI-RABBIT B-3000 how it works.
I made this security for my carrot farm, I had some problems with rabbits, the moment I left BOOM rabbits having a feast, so I made a rabbit farm, baiting the rabbits into a trap! I felt so proud of this I posted it here, but then I'm like, is this practical? anyways if you guys hate this too just try it, I made more food this way than farming carrots. pictures down below.
it works by using the rabbits lust for carrots, in the center of thing of water, have a 2x2 thing of carrots, then protect it by a small wall they cant get over, make a piston bridge half way into the water, then a timer long enough to make them trust the bridge, then when the timer shuts off, they fall into the current, go under the wall, and drown.
is this over done? is just putting a fence around you carrots better? and just hunt the rabbits after? comment below on your thoughts.
1
I think I figured it out, my account was hacked (again) and the downloads were the fake files recreated to look normal to install the Trojan, but I cant download the map anymore, sorry, do you have a mediafire link?
1
hmm, I try downloading it, my web browser says "are you sure you want to download this?" hit yes, then my firewall blocks it saying "there is malware embedded into the files code, download canceled." download onto virtual machine, gets file, trys opening minecraft, map doesn't work, minecraft crashes.
is this supposed to be happening?
1
3.1ghz minimum duel core cpu, but still your specs are way to low for this.
now my cpu slightly better then the Intel i3-3210, the AMD a6 6310 is mine, with a hefty overclock 2.8ghz at only 60 degrees centigrade at full load, quad core, 8gbs of ddr3 ram, and AMD R4 graphics set to 1gb, I only get 2-3 fps in this version, there must be something wrong, seeing that I get close to 120fps on 1.12.2 minecraft.
ok, don't say you can run the specs, if you say "is it just my computer?"
1
go on spectator if you can, you can then fly through walls, sometimes the portal is behind something like a wall.