Jump to content

Recommended Posts

Posted (edited)

Hi,

since today, i can't compile my 1.10.2 mod :( 

Here is the log:

  Reveal hidden contents

I already redownloaded the Forge MDK but without success.

Since the last release of my Mod MS Utilities I haven't made any changes regarding entities.

What can I do???
 

Thank you!

Edited by MSandro
Posted (edited)
  On 6/3/2017 at 7:58 PM, diesieben07 said:

Re-run setupDecompWorkspace.

Expand  

Thank you, but I already tried that. Don't work :(

I've noticed that something is wrong with my "shelter.jar".

if I change: "Entity LeftEntity = EntityList.createEntityByName(ConfigManager.ShelterLeftEntity, world);"

to: "EntityLiving LeftEntity = (EntityLiving) EntityList.createEntityByName(ConfigManager.ShelterLeftEntity, world);"

The log says: 
 

  Quote

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':reobfJar'.
> java.lang.ClassNotFoundException: net.minecraft.entity.EntityLiving

Expand  

 

shelter.javaFetching info...

Edited by MSandro
Posted (edited)

Does not work too... What am I doing wrong? :(

 

shelter.java:
 

  Quote

                /*Entity REntity = EntityList.createEntityByName(ConfigManager.ShelterRightEntity, world);
                
                if (REntity instanceof EntitySkeleton) {
                    ((EntityLiving)REntity).setHeldItem(EnumHand.MAIN_HAND, new ItemStack(Item.getByNameOrId("minecraft:bow")));
                    ((EntityLiving)REntity).setArrowCountInEntity(64);
                }
                
                REntity.setPosition(PosX + 1, PosY +1, PosZ + 6.5);
                world.spawnEntityInWorld(REntity);*/
                
                
                Entity LEntity = EntityList.createEntityByName(ConfigManager.ShelterLeftEntity, world);
                
                if (LEntity instanceof EntitySkeleton) {
                    ((EntityLiving)LEntity).setHeldItem(EnumHand.MAIN_HAND, new ItemStack(Item.getByNameOrId("minecraft:bow")));
                    ((EntityLiving)LEntity).setArrowCountInEntity(64);
                }
                
                LEntity.setPosition(PosX + 12, PosY +1, PosZ + 6.5);
                world.spawnEntityInWorld(LEntity);

Expand  

It only works when I comment out the top block, but I do not understand why!! :( 

 

Edit: No matter which block is commented out, but it must be one.

shelter.java

Edited by MSandro

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.