Mob-Sweep proposal; to exclude mobs with name tags

Serious discussion about major changes to Kreatious happens here!

Mob-Sweep proposal; to exclude mobs with name tags

by kenster1965 » Thu Dec 31, 2015 6:57 pm

Zerg and Sxk our wonderful and most glorious programmers :D (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,
Last edited by kenster1965 on Fri Jan 01, 2016 4:26 pm, edited 1 time in total.
Ken - Kenster1965

Image
User avatar
kenster1965
Moderator
 
Posts:
Joined: Sat Mar 15, 2014 3:32 pm
Location: Bay Area, California.

Re: Mod-Sweep proposal; to exclude mobs with name tags

by V3N0M_123 » Fri Jan 01, 2016 10:20 am

Yes there is a way to get rid of mods, just demote sdor, icefang etc. Ezpz
Image
Image
User avatar
V3N0M_123
Resident
 
Posts:
Joined: Thu Jan 02, 2014 11:11 am
Location: Receiving UK jokes from SDOR and Icefang

Re: Mod-Sweep proposal; to exclude mobs with name tags

by kenster1965 » Fri Jan 01, 2016 4:26 pm

Opps I meant Mobs (Sorry)
Ken - Kenster1965

Image
User avatar
kenster1965
Moderator
 
Posts:
Joined: Sat Mar 15, 2014 3:32 pm
Location: Bay Area, California.

Re: Mob-Sweep proposal; to exclude mobs with name tags

by maxmmm1501 » Fri Jan 01, 2016 6:32 pm

Ive always wanted this, but not sure how hard it would be to code
maxmmm1501
Moderator
 
Posts:
Joined: Sat May 11, 2013 8:11 pm
Location: Nebraska

Re: Mob-Sweep proposal; to exclude mobs with name tags

by ShadyVale » Sun Jan 03, 2016 5:15 pm

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?
Image
"There's no point in being grown up if you can't be childish sometimes." -The Doctor
User avatar
ShadyVale
Moderator
 
Posts:
Joined: Tue Aug 12, 2014 6:44 pm
Location: Tennessee, USA

Re: Mob-Sweep proposal; to exclude mobs with name tags

by kenster1965 » Fri Feb 05, 2016 8:25 pm

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,
Ken - Kenster1965

Image
User avatar
kenster1965
Moderator
 
Posts:
Joined: Sat Mar 15, 2014 3:32 pm
Location: Bay Area, California.


Return to Serious Discussion

Who is online

Users browsing this forum: No registered users and 2 guests