A bit of code could be added to the Creeper, Spider, etc, so that they could all spawn on peaceful mode, however would be unable to attack or do anything but jump around and be passive.
This would allow peaceful players to get string, slime balls, bones especially, and gunpowder, without any risk of dying, having work blown up, or having your save broken upon update.
I can see the merit of this, as collecting enough materials can be a major pain when you only start lagging when you enter battle every single time, but it would be a little too easy. At least have creepers still explode when you're too close. Or perhaps mobs are like pigmen or spiders in the day. Passive until provoked, allowing you to get the drop.
Copying post from your other thread in the mod section.
I'm currently modding the mob AI. Even though my mod is a ways off due to working full time this isn't a bad idea. I'm not sure where the code is that despawns mobs on peaceful, but I'll have a look and see if I can't incorporate it. I already plan on making the mobs have further targeting and being generally more aggressive on high difficulty's. For peaceful I can just skip the call to find a target, If I can get them to not despawn.
1. Enemies on peaceful mode are forced to be passive and unable to attack you or anything.
2. Peaceful mode is changed: Enemies can attack you if attacked first.
perhaps for 2 the enemies would do a very small amount of damage :/
Either way (1 or 2) would be easy enough to do. I prefer #2 myself, as my goal is to make more intelligent and overall harder enemies, that are fun in that arcady way. #2 would make peaceful a little be harder than no enemies at all, but still pretty easy overall. I'm not sure about making them do less damage, they already don't do much damage if your taking them on one on one without worry of other mobs attacking. The only mob that does real damage is the creeper, which could be toned down a little. The zombie could have reduced reach, and the spider's not leap, but I haven't looked into actually changing those things yet.
This would allow peaceful players to get string, slime balls, bones especially, and gunpowder, without any risk of dying, having work blown up, or having your save broken upon update.
Good idea?
My old account died. It shall be remembered!
and if you changed the mechanic of that on peaceful then there might be more issues than good... then maybe squids would fight back...
I'm currently modding the mob AI. Even though my mod is a ways off due to working full time this isn't a bad idea. I'm not sure where the code is that despawns mobs on peaceful, but I'll have a look and see if I can't incorporate it. I already plan on making the mobs have further targeting and being generally more aggressive on high difficulty's. For peaceful I can just skip the call to find a target, If I can get them to not despawn.
We need peaceful ways to get bones and string. This fits the bill, good job :biggrin.gif:
Okay, so ideas for functionality:
1. Enemies on peaceful mode are forced to be passive and unable to attack you or anything.
2. Peaceful mode is changed: Enemies can attack you if attacked first.
perhaps for 2 the enemies would do a very small amount of damage :/