CoolLord22 / OtherDrops1.13

OtherDrops branch for the latest Minecraft version!
GNU General Public License v3.0
0 stars 4 forks source link

Add @THIS functionality to SPAWN_EGGs #23

Open WayGroovy opened 5 years ago

WayGroovy commented 5 years ago

Is your feature request related to a problem? Please describe. Long ago I had a chance a mob would drop one of it's own spawn eggs: aliases:

Now that Monster Eggs all have unique item names, so I need to have a separate alias for each? Describe the solution you'd like Request drops that are SPAWN_EGG@THIS to associate with /ENTITY/_SPAWN_EGG

Describe alternatives you've considered Considered rolling back to earlier minecraft version

Additional context Thank you for your quick response and assistance

CoolLord22 commented 5 years ago

Found some relevant code for the issue, attaching below so I don't forget. OtherDrops/src/com/gmail/zariust/otherdrops/drop/ItemDrop.java

if (material.toString().equalsIgnoreCase("monster_egg")) { // spawn
                                                                       // egg
                EntityType creatureType = CommonEntity
                        .getCreatureEntityType(dataSplit[0]);
                if (creatureType != null)
                    itemData = creatureType.getTypeId();
            } 

This is on 1.12 branch, will need to find some replacement for 1.13.