Jump to content

Can't get assets to work


Xechon

Recommended Posts

I know there are a lot of posts about this already, because I have read many, many of them here and elsewhere already; unfortunately, none of them have worked for me. I'm sure its something stupid, but I haven't been able to fix it for several days now. Here is a github repo of the code that I threw together to show how I am setting everything up.

 

I am using intellij, but I have added the fixes to the build.gradle file and rerun setup and synchronized the gradle project. However, I am still not getting any results. In game, the itemBlock appears as just an item with missing texture (not an item block model), the block places and behaves perfectly, but has a missing texture, and not even the localization is working.

 

Sorry for the bother, but I'm pulling hairs out right now. Thanks for the help!

Link to comment
Share on other sites

Your repo is pretty much just the examplemod. What exact steps did you use to setup your workspace? you ran both gradlew setupDecompWorkspace and gradlew intellij command line instructions? Can you post all the output from those commands?

 

Then you imported the project properly?

 

I use Eclipse so maybe there are some other tricks with setting up IntelliJ but that would be all that is needed with Eclipse (except also need Java setup properly of course).

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

Yeah, this one is the examplemod, since I just threw this together so it only had the issue at hand. I ran gradlew.bat setupDecompWorkspace idea genIntellijRuns to set it up, and then opened the generated .ipr and imported the gradle project into my environment. I re-ran setup just now to grab the output, here is a pastebin.

 

There is a known flaw in the intellij forgegradle setup, which is that you need to append a line to the end of the build.gradle before you run setup, or re-run setup afterwards (which I did, just copied from an earlier project in 1.8.9 that works for me). Thanks for the response!

Link to comment
Share on other sites

Unfortunately, that doesn't seem to have done anything. I did this on the project I already had and ran it, still not even localization working, and then generated a new project on the same version to test it on, only running gradlew.bat setupDecompWorkspace, importing from the build.gradle, and running genIntellijRuns from the gradle tab in my IDE. Exact same situation there.

 

I suppose it might help for me to post the error logs of a problem I am having, instead of expecting folks to magically fix it for me: http://pastebin.com/v5BHPmsc . The new project just has the copied classes and resources from the last one, so the folder structure and code is set up exactly the same. I am running IntelliJ IDEA 1016.2.4 and forge-1.10.2-12.18.1.2011 . If you could use any more information, please tell  :)

Link to comment
Share on other sites

I knew it would be something stupid. The assets.modname was the culprit, which I didn't notice because that is how it still looks, since intellij detects when a directory only has a single directory in it and compresses the name in that way. Thanks so much!

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.