Jump to content

Can't build .jar after adding models?


Eria8

Recommended Posts

Everything worked perfectly in a test run and when building earlier. But then I added models to my mod.

 

First off, they DO all work perfectly when running the test client in Eclipse so I know there's nothing wrong with my coding.

After adding them I run gradle build like always but I get this error.

What's wrong with it?:

 

 

 

****************************

Powered By MCP:           

http://mcp.ocean-labs.de/ 

Searge, ProfMobius, Fesh0r,

R4wk, ZeuX, IngisKahn     

MCP Data version : unknown

****************************

:compileApiJava UP-TO-DATE

:processApiResources UP-TO-DATE

:apiClasses UP-TO-DATE

:sourceMainJava

:compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.6

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\ItemRendererMasamune.java:11: error: package assets.pixelmoncore.models does not exist

import assets.pixelmoncore.models.ModelMasamune;

                                ^

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\ItemRendererMasamune.java:19: error: cannot find symbol

    protected ModelMasamune modelMasamune;

              ^

  symbol:  class ModelMasamune

  location: class ItemRendererMasamune

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\ItemRendererMasterSword.java:11: error: package assets.pixelmoncore.models does not exist

import assets.pixelmoncore.models.ModelMasterSword;

                                ^

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\ItemRendererMasterSword.java:20: error: cannot find symbol

    protected ModelMasterSword modelMasterSword;

              ^

  symbol:  class ModelMasterSword

  location: class ItemRendererMasterSword

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderBluePot.java:5: error: package assets.pixelmoncore.models does not exist

import assets.pixelmoncore.models.ModelPot;

                                ^

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderBluePot.java:17: error: cannot find symbol

private ModelPot model;

        ^

  symbol:  class ModelPot

  location: class RenderBluePot

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderBrownPot.java:5: error: package assets.pixelmoncore.models does not exist

import assets.pixelmoncore.models.ModelPot;

                                ^

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderBrownPot.java:17: error: cannot find symbol

private ModelPot model;

        ^

  symbol:  class ModelPot

  location: class RenderBrownPot

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderCuttingBoard.java:9: error: package assets.pixelmoncore.models does not exist

import assets.pixelmoncore.models.ModelCuttingBoard;

                                ^

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderCuttingBoard.java:17: error: cannot find symbol

private ModelCuttingBoard model;

        ^

  symbol:  class ModelCuttingBoard

  location: class RenderCuttingBoard

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderPC.java:5: error: package assets.pixelmoncore.models does not exist

import assets.pixelmoncore.models.ModelPC;

                                ^

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderPC.java:17: error: cannot find symbol

private ModelPC model;

        ^

  symbol:  class ModelPC

  location: class RenderPC

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderPlant.java:9: error: package assets.pixelmoncore.models does not exist

import assets.pixelmoncore.models.ModelPlant;

                                ^

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderPlant.java:17: error: cannot find symbol

private ModelPlant model;

        ^

  symbol:  class ModelPlant

  location: class RenderPlant

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderSkillet.java:6: error: package assets.pixelmoncore.models does not exist

import assets.pixelmoncore.models.ModelSkillet;

                                ^

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderSkillet.java:18: error: cannot find symbol

private ModelSkillet model;

        ^

  symbol:  class ModelSkillet

  location: class RenderSkillet

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\main\ClientProxy.java:8: error: package assets.pixelmoncore.models does not exist

import assets.pixelmoncore.models.ModelBlueChu;

                                ^

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\main\ClientProxy.java:9: error: package assets.pixelmoncore.models does not exist

import assets.pixelmoncore.models.ModelCuccoo;

                                ^

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\ItemRendererMasamune.java:23: error: cannot find symbol

    modelMasamune = new ModelMasamune();

                        ^

  symbol:  class ModelMasamune

  location: class ItemRendererMasamune

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\ItemRendererMasterSword.java:25: error: cannot find symbol

    modelMasterSword = new ModelMasterSword();

                          ^

  symbol:  class ModelMasterSword

  location: class ItemRendererMasterSword

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderBluePot.java:20: error: cannot find symbol

this.model = new ModelPot();

                ^

  symbol:  class ModelPot

  location: class RenderBluePot

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderBrownPot.java:20: error: cannot find symbol

this.model = new ModelPot();

                ^

  symbol:  class ModelPot

  location: class RenderBrownPot

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderCuttingBoard.java:20: error: cannot find symbol

this.model = new ModelCuttingBoard();

                ^

  symbol:  class ModelCuttingBoard

  location: class RenderCuttingBoard

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderPC.java:20: error: cannot find symbol

this.model = new ModelPC();

                ^

  symbol:  class ModelPC

  location: class RenderPC

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderPlant.java:20: error: cannot find symbol

this.model = new ModelPlant();

                ^

  symbol:  class ModelPlant

  location: class RenderPlant

C:\Users\Erika\Desktop\SRC1\Forge\build\sources\java\com\pixelmoncore\entity\RenderSkillet.java:21: error: cannot find symbol

this.model = new ModelSkillet();

                ^

  symbol:  class ModelSkillet

  location: class RenderSkillet

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

26 errors

1 warning

FAILED

 

FAILURE: Build failed with an exception.

 

* What went wrong:

Execution failed for task ':compileJava'.

> Compilation failed; see the compiler error output for details.

 

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

 

BUILD FAILED

 

Total time: 17.763 secs

 

 

 

Link to comment
Share on other sites

Run a clean and try again, but it seems it cant find pixelmoncore.

import assets.pixelmoncore.models.ModelPot;

As a note.. why is your folder called assets.pixelmoncore?

You put assets in assets not code.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • As the title says i keep on crashing on forge 1.20.1 even without any mods downloaded, i have the latest drivers (nvidia) and vanilla minecraft works perfectly fine for me logs: https://pastebin.com/5UR01yG9
    • Hello everyone, I'm making this post to seek help for my modded block, It's a special block called FrozenBlock supposed to take the place of an old block, then after a set amount of ticks, it's supposed to revert its Block State, Entity, data... to the old block like this :  The problem I have is that the system breaks when handling multi blocks (I tried some fix but none of them worked) :  The bug I have identified is that the function "setOldBlockFields" in the item's "setFrozenBlock" function gets called once for the 1st block of multiblock getting frozen (as it should), but gets called a second time BEFORE creating the first FrozenBlock with the data of the 1st block, hence giving the same data to the two FrozenBlock :   Old Block Fields set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=head] BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@73681674 BlockEntityData : id:"minecraft:bed",x:3,y:-60,z:-6} Old Block Fields set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} Frozen Block Entity set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockPos{x=3, y=-60, z=-6} BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} Frozen Block Entity set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockPos{x=2, y=-60, z=-6} BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} here is the code inside my custom "freeze" item :    @Override     public @NotNull InteractionResult useOn(@NotNull UseOnContext pContext) {         if (!pContext.getLevel().isClientSide() && pContext.getHand() == InteractionHand.MAIN_HAND) {             BlockPos blockPos = pContext.getClickedPos();             BlockPos secondBlockPos = getMultiblockPos(blockPos, pContext.getLevel().getBlockState(blockPos));             if (secondBlockPos != null) {                 createFrozenBlock(pContext, secondBlockPos);             }             createFrozenBlock(pContext, blockPos);             return InteractionResult.SUCCESS;         }         return super.useOn(pContext);     }     public static void createFrozenBlock(UseOnContext pContext, BlockPos blockPos) {         BlockState oldState = pContext.getLevel().getBlockState(blockPos);         BlockEntity oldBlockEntity = oldState.hasBlockEntity() ? pContext.getLevel().getBlockEntity(blockPos) : null;         CompoundTag oldBlockEntityData = oldState.hasBlockEntity() ? oldBlockEntity.serializeNBT() : null;         if (oldBlockEntity != null) {             pContext.getLevel().removeBlockEntity(blockPos);         }         BlockState FrozenBlock = setFrozenBlock(oldState, oldBlockEntity, oldBlockEntityData);         pContext.getLevel().setBlockAndUpdate(blockPos, FrozenBlock);     }     public static BlockState setFrozenBlock(BlockState blockState, @Nullable BlockEntity blockEntity, @Nullable CompoundTag blockEntityData) {         BlockState FrozenBlock = BlockRegister.FROZEN_BLOCK.get().defaultBlockState();         ((FrozenBlock) FrozenBlock.getBlock()).setOldBlockFields(blockState, blockEntity, blockEntityData);         return FrozenBlock;     }  
    • It is an issue with quark - update it to this build: https://www.curseforge.com/minecraft/mc-mods/quark/files/3642325
    • Remove Instant Massive Structures Mod from your server     Add new crash-reports with sites like https://paste.ee/  
  • Topics

×
×
  • Create New...

Important Information

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