Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • richie995

richie995

Members
 View Profile  See their activity
  • Content Count

    4
  • Joined

    June 22, 2019
  • Last visited

    July 7, 2019

 Content Type 

  • All Activity

Profiles

  • Status Updates
  • Status Replies

Forums

  • Topics
  • Posts

Calendar

  • Events

Posts posted by richie995

  1. getClassFromName().entrySet VS ENTITIES.getEntries()

    in Modder Support

    Posted June 27, 2019


    I know this topic is very old, but what mod were you updating

     

  2. createEntityByIDFromName error 1.12.2

    in Modder Support

    Posted June 26, 2019


    I'm porting a mod from 1.10.2 to 1.12.2 and have received the following error NAME_TO_CLASS cannot be resolved or is not a field for the code

     
     
     
    Spoiler

    public void modifyDrops(final MobDropsInfo mobDrops) {
            if (!mobDrops.theEntity.world.isRemote) {
                int count = FileHelper.getCount(this.counts);
                while (count-- > 0) {
                    final Entity entity = EntityList.NAME_TO_CLASS.(this.entityId, mobDrops.theEntity.world);
                    if (entity == null) {
                        return;
                    }
                    this.initEntity(mobDrops.theEntity, entity, mobDrops);
                    mobDrops.theEntity.world.spawnEntity(entity);

    I know that NAME_TO_Class needs to be changed. I believe that it could be changed to createEntityByIDFromName, or getClassfromName, and these are suggestions I get when testing. However, When I switch to them it says I need a resource location, which I'm not sure how to create, fix, or what it means. This is one only a few errors left in the port, and would really appreciate a solution.

  3. StackSize porting mod error 1.12.2

    in Modder Support

    Posted June 26, 2019


    I'm porting mob properties from 1.10.2 to 1.12.2 in eclipse and I've received the following error 

    Spoiler
     
     
     
    Spoiler

    private int removeDrop(final Item item, final int damage, int count, final boolean infinite, final List<EntityItem> drops) {
            final Iterator<EntityItem> iterator = drops.iterator();
            while (iterator.hasNext()) {
                final EntityItem drop = iterator.next();
                final ItemStack dropStack = drop.getItem();
                if (item == dropStack.getItem() && (damage < 0 || damage == dropStack.getItemDamage())) {
                    if (infinite) {
                        iterator.remove();
                    }
                    else {
                        count += dropStack.stackSize;
                        if (count < 0) {
                            iterator.remove();
                        }
                        else {
                            if (count == 0) {
                                iterator.remove();
                                return 0;
                            }
                            dropStack.stackSize = count;
                            drop.setEntityItemStack(dropStack);
                            return 0;

    I'm relatively new to porting mod, so I'm unsure of what to do. The bolded functions are ones highlighted in red in eclipse. For the error "setEntityItemStack" when hovered over it says "The method setEntityItemStack(ItemStack) is undefined for the type EntityItem" and when hovering over "stacksize" it says "The field ItemStack.stackSize is not visible" I'm unsure of how to fix this error, and could use some help

  4. Help porting mod from 1.10 to 1.12.2

    in Modder Support

    Posted June 22, 2019


    I've used the mod Mob Properties a lot when it comes to modpacks with friends. I've been wanting to use it in a 1.12.2 modpack I'm creating, but the highest released version is 1.10. I know some java coding, but I'm no expert. Can anyone explain to me, how I might be able to port it from 1.10 to 1.12.2 myself. I know there are mods such as In Control and Mob Properties randomness, but they lack some of the key features I like from Mob Properties. Your help would be greatly appreciated

  • All Activity
  • Home
  • richie995
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community