Page 1 of 1
Mob-Sweep proposal; to exclude mobs with name tags
Posted: Thu Dec 31, 2015 6:57 pm
by kenster1965
Zerg and Sxk our wonderful and most glorious programmers
(I know that sounds cheesy but this is going somewhere).
Is there anyway to exclude named mobs in the Mob-Sweep program. The last run deleted several great trading villagers. I understand that's the nature of MC, however because of the difficulty in getting a name tag, XP to name it, then naming a villager that would show that they are the ones worth keeping. Also if there was an explosion of population the mob-sweep would still work, it would just let us keep the few mobs that we have named.
I'm sure it would be a huge pain to do it, but is there a way to at least see if it doable?
Thanks,
Re: Mod-Sweep proposal; to exclude mobs with name tags
Posted: Fri Jan 01, 2016 10:20 am
by V3N0M_123
Yes there is a way to get rid of mods, just demote sdor, icefang etc. Ezpz
Re: Mod-Sweep proposal; to exclude mobs with name tags
Posted: Fri Jan 01, 2016 4:26 pm
by kenster1965
Opps I meant Mobs (Sorry)
Re: Mob-Sweep proposal; to exclude mobs with name tags
Posted: Fri Jan 01, 2016 6:32 pm
by maxmmm1501
Ive always wanted this, but not sure how hard it would be to code
Re: Mob-Sweep proposal; to exclude mobs with name tags
Posted: Sun Jan 03, 2016 5:15 pm
by ShadyVale
This is a great idea and would be beneficial overall for the players that name pets as well as the villager traders.
It should be possible to exclude named mobs, but i assume the difficulty would depend on how the sweep seeks out the mobs to remove. Does it seek out by entity id # or by actual entity name (ie. chicken, zombie, etc), anyone know?
Re: Mob-Sweep proposal; to exclude mobs with name tags
Posted: Fri Feb 05, 2016 8:25 pm
by kenster1965
First thank you for looking at this. The last sweep took many tagged mobs.
Back on 1/18 Zerg looked at the code and stated this:
if (entity instanceof CraftCreature §§ entity instanceof CraftIronGolem == false §§ (ct >= 30 || entity instanceof CraftVillager == false || ((CraftCreature) entity).isCustomNameVisible() == false)) {
The problem is not what chunk to thin out, but what mods to delete in that chunk. players stated that they had mules, villagers, dogs all get deleted that were tagged.
The problem is if there are more than 30 entities in a chunk and i have 5 of them tagged so they don't get swept they do.
If during the 'sweeping' each one about to get deleted was checked, if (CraftCreature) entity).isCustomNameVisible() == true)) then skip, that would be great.
I don't know how the script is set up and it might be that it's not possible. If it cant be done could you let us know so that we can build out bigger to put tagged mobs in their own lite up chunks.
Thanks again,