A few days ago when a ton of people were experimenting with pigmen, alot of people were curious about what pigmen do when they encounter a regular mob. Such as zombies, creepers, slimes, union strikes.
First off I have NOT been able to reproduce what I did to make this possible, I believe the recent update to minecraft changed it so I can't.
The first step to getting pigmen to be with regular mobs, is to make regular mobs spawn around them.
To do this you need to take your nether world data (in folder dim1) and replace all the regular world data with the nethers. Before the update this would give you two nethers, while this still works it's very glitchy now. Please note, it's important that you have pigmen around you when you save the dim1 folder. Otherwise they will NOT spawn when the overworld is replaced by nether. This is because you're transporting nether and mobs to the overworld, not turning the overworld into the actual nether.
When a pigmen encountered a hostile npc, in my first observation, a spider. They do nothing, they just walk around like they don't see the spider.
However the hostile mobs do not act the same way towards pigmen. I personally witnessed a spider attack and kill a pigmen, as well as a skeleton kill one with arrows. I did not observe ghasts react with any regular mobs.
I attempted to reproduce this to add photos as proof, but failed. I did manage to get creepers and spiders into nether, but I could not locate any pigmen.
I will continue trying to get them to coexist.
Below is a pic of creepers in nether, as well as a pic of what happens "now" when you merge files.
The Meaning of Life, the Universe, and Everything.
Join Date:
10/31/2010
Posts:
42
Member Details
the first time they dident attack them
but you said they attacked the pig-men when they were hostile
is that like attacking a and standing behind a to make them fight
did you do that except with + instead??
im confused how did you get them to attack each other??
I didn't get them to fight, I only got them both in the same world.
Alot of people expected/hoped that pigmen would attack hostile mobs, like or . However I found out that it's actually backwards from what we hoped. As a attacked a pigman, and the pigman DID NOT fight back. Same as when I saw the attacking a different pigman, the pigman just walked around like nothing happened.
The reason the don't attack or even bother with normal mobs is because they weren't programmed to, and this is also why they don't attempt to use water to put themselves out with water when they catch on fire.
The reason the don't attack or even bother with normal mobs is because they weren't programmed to, and this is also why they don't attempt to use water to put themselves out with water when they catch on fire.
Really?
Generally, games will generalize out a large amount of NPC behavior according to their type. For example, Minecraft "might" reasonably have a class called Mob, which contains all NPCs. Then there could be subclasses for mob types -- maybe Hostile, Passive, and Neutral. And then each of the individual mobs (Spider, Pig, etc) might descend directly from one of those 3 main subclasses. This is much more efficient and maintainable than copy-pasting shared code (like the passive mobs' random(?) movement) directly into each NPC class. This is especially true the more NPCs you have. So a Zombie Pigman, for example, will behave not only in the ways a Zombie Pigman is programmed, but the way a Neutral mob is programmed, and the way a Mob is programmed too. (Note the specific class hierarchy here is speculation -- this is the jist of how one would sensibly arrange things.)
Zombie Pigmen are interesting because they are the only neutral mob so far. Their behavior might hint a bit at how other neutral mobs might initially behave in future updates, because some of that behavior could be contained in the Neutral class rather than the Pigman class. If the pigmen had reacted to normal-world mobs in some way, it would be basically guaranteed that that behavior was intended for neutral mobs in general, because it doesn't make any sense to write that sort of code specifically for a Zombie Pigman, who will never run into mobs from the normal-world. The same goes for if they had attempted to put themselves out with water.
That is why this experiment is interesting. Note that, even though skeletons will never meet pigmen under normal circumstances, they are still programmed to attack them. If Notch programmed 100% of each mob's behavior individually, that wouldn't happen. My guess is that players are considered neutral characters, which hostile mobs are programmed to attack. Ofc, players don't need AI, so there's no defined behavior for a computer-controlled neutral mob to respond to hostiles yet. If this is the case, the zombie pigmen might start fighting back if/when living pigmen are added to the normal world.
First off I have NOT been able to reproduce what I did to make this possible, I believe the recent update to minecraft changed it so I can't.
The first step to getting pigmen to be with regular mobs, is to make regular mobs spawn around them.
To do this you need to take your nether world data (in folder dim1) and replace all the regular world data with the nethers. Before the update this would give you two nethers, while this still works it's very glitchy now. Please note, it's important that you have pigmen around you when you save the dim1 folder. Otherwise they will NOT spawn when the overworld is replaced by nether. This is because you're transporting nether and mobs to the overworld, not turning the overworld into the actual nether.
When a pigmen encountered a hostile npc, in my first observation, a spider. They do nothing, they just walk around like they don't see the spider.
However the hostile mobs do not act the same way towards pigmen. I personally witnessed a spider attack and kill a pigmen, as well as a skeleton kill one with arrows. I did not observe ghasts react with any regular mobs.
I attempted to reproduce this to add photos as proof, but failed. I did manage to get creepers and spiders into nether, but I could not locate any pigmen.
I will continue trying to get them to coexist.
Below is a pic of creepers in nether, as well as a pic of what happens "now" when you merge files.
but you said they attacked the pig-men when they were hostile
is that like attacking a and standing behind a to make them fight
did you do that except with + instead??
im confused how did you get them to attack each other??
Alot of people expected/hoped that pigmen would attack hostile mobs, like or . However I found out that it's actually backwards from what we hoped. As a attacked a pigman, and the pigman DID NOT fight back. Same as when I saw the attacking a different pigman, the pigman just walked around like nothing happened.
My football team is the Russian bears on unicycles.
Really?
Generally, games will generalize out a large amount of NPC behavior according to their type. For example, Minecraft "might" reasonably have a class called Mob, which contains all NPCs. Then there could be subclasses for mob types -- maybe Hostile, Passive, and Neutral. And then each of the individual mobs (Spider, Pig, etc) might descend directly from one of those 3 main subclasses. This is much more efficient and maintainable than copy-pasting shared code (like the passive mobs' random(?) movement) directly into each NPC class. This is especially true the more NPCs you have. So a Zombie Pigman, for example, will behave not only in the ways a Zombie Pigman is programmed, but the way a Neutral mob is programmed, and the way a Mob is programmed too. (Note the specific class hierarchy here is speculation -- this is the jist of how one would sensibly arrange things.)
Zombie Pigmen are interesting because they are the only neutral mob so far. Their behavior might hint a bit at how other neutral mobs might initially behave in future updates, because some of that behavior could be contained in the Neutral class rather than the Pigman class. If the pigmen had reacted to normal-world mobs in some way, it would be basically guaranteed that that behavior was intended for neutral mobs in general, because it doesn't make any sense to write that sort of code specifically for a Zombie Pigman, who will never run into mobs from the normal-world. The same goes for if they had attempted to put themselves out with water.
That is why this experiment is interesting. Note that, even though skeletons will never meet pigmen under normal circumstances, they are still programmed to attack them. If Notch programmed 100% of each mob's behavior individually, that wouldn't happen. My guess is that players are considered neutral characters, which hostile mobs are programmed to attack. Ofc, players don't need AI, so there's no defined behavior for a computer-controlled neutral mob to respond to hostiles yet. If this is the case, the zombie pigmen might start fighting back if/when living pigmen are added to the normal world.