Jump to content

Custom resources not working in modding environment only


winnetrie

Recommended Posts

Hello, in my mod i made a custom model for ladder and bookshelf. Since i updated to forge 2282 it appears not working anymore.

It had worked before and it seems like minecraft is ignoring the resources.

The weird thing is that in a real environment it all works fine.

So i'm wondering why it doesn't work in the modding environment?

I remembered that i had this before once but can't remember how i fixed it.

 

Some more info: I made ladders and bookshelves for all other woodtypes with my model and those are working fine in both modding and real environment.

I needed to make also a resource folder for minecraft to apply this also for the standard ladder and bookshelf.

The folder is assets/minecraft/blockstates/ladder.json for the blockstate to override (this should override minecrafts ladder with mine, if i'm right)

i also have assets/tem/blockstated/jungleladder.json for my jungleladder

Edited by winnetrie
Link to comment
Share on other sites

Post the latest logs (fml-client-latest.log).

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

I have added a very recent log file. I hope this helps. I can't find anything related to this issue.

Keep in my mind that everything works fine in a real environment.

I hope anyone can help me with this, because i never know for 100% ,while in the modding environment(eclipse), that it will work.

fml-client-latest.log

Link to comment
Share on other sites

I still haven't solved this. Is there something i should activate in my modding workspace or....?

When i start the game (in eclipse) it looks like minecraft/ forge is ignoring the folder tem/assets/minecraft.

Like i said before it is ONLY in modding environment. Everything works fine in the real minecraft.

This is an ennoying thing, because i have to test it in real minecraft to see if everything is alright.

I also made a copy of those texture and blockstates and made a standalone texture pack and called it testpack.

I can select that texture pack ingame (while in modding environment) and when selected, the game succesfully loads the texture pack and everything works fine.

I'm out of ideas now....

 

So why does the game not load the resources that should overwrite the standard resources in modding environment, but does load it in real environment?

I would be really happy if someone could help me.

Link to comment
Share on other sites

eclipse ignores upper and lower case differnts while outside the dev env this is not ignored, have you already checked this?  also resource now have to be lowercase.

catch(Exception e)

{

 

}

Yay, Pokémon exception handling, gotta catch 'em all (and then do nothing with 'em).

Link to comment
Share on other sites

19 hours ago, MCenderdragon said:

eclipse ignores upper and lower case differnts while outside the dev env this is not ignored, have you already checked this?  also resource now have to be lowercase.

 
 

Windows* ignores upper and lower case differences, while a JAR* file doesn't.

 

@OP, do you use the same Forge version for dev and the normal game?

Edited by larsgerrits

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • my arrow wont move at all it would stay mid air and show no collision   my Entity class: package net.jeezedboi.epicraft.entity.custom; import net.jeezedboi.epicraft.init.ModItems; import net.minecraft.entity.EntityType; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.projectile.AbstractArrowEntity; import net.minecraft.item.ItemStack; import net.minecraft.network.IPacket; import net.minecraft.util.math.EntityRayTraceResult; import net.minecraft.world.Explosion; import net.minecraft.world.World; import net.minecraftforge.fml.network.NetworkHooks; public class ExplosiveArrowEntity extends AbstractArrowEntity { // default constructor, required to register the entity public ExplosiveArrowEntity(EntityType<ExplosiveArrowEntity> entityType, World world) { super(entityType, world); } public ExplosiveArrowEntity(EntityType<ExplosiveArrowEntity> entityType, double x, double y, double z, World world) { super(entityType, x, y, z, world); } // the constructor used by the ArrowItem public ExplosiveArrowEntity(EntityType<ExplosiveArrowEntity> entityType, LivingEntity shooter, World world) { super(entityType, shooter, world); } // the item stack to give the player when they walk over your arrow stuck in the ground @Override protected ItemStack getArrowStack() { return new ItemStack(ModItems.EXPLOSIVE_ARROW.get()); } @Override protected void onEntityHit(EntityRayTraceResult result) { super.onEntityHit(result); // this, x, y, z, explosionStrength, setsFires, breakMode (NONE, BREAK, DESTROY) this.world.createExplosion(this, this.getPosX(), this.getPosY(), this.getPosZ(), 4.0f, true, Explosion.Mode.BREAK); } // called each tick while in the ground @Override public void tick() { if (this.timeInGround > 60){ this.world.createExplosion(this, this.getPosX(), this.getPosY(), this.getPosZ(), 4.0f, true, Explosion.Mode.BREAK); this.remove(); } } // syncs to the client @Override public IPacket<?> createSpawnPacket() { return NetworkHooks.getEntitySpawningPacket(this); } } my item class :   package net.jeezedboi.epicraft.item.custom; import net.jeezedboi.epicraft.entity.custom.ExplosiveArrowEntity; import net.jeezedboi.epicraft.init.ModEntityTypes; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.projectile.AbstractArrowEntity; import net.minecraft.item.ArrowItem; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class ExplosiveArrowItem extends ArrowItem { public ExplosiveArrowItem(Properties props) { super(props); } @Override public AbstractArrowEntity createArrow(World world, ItemStack ammoStack, LivingEntity shooter) { ExplosiveArrowEntity explosiveArrowEntity = new ExplosiveArrowEntity(ModEntityTypes.EXPLOSIVE_ARROW.get(), shooter, world); return explosiveArrowEntity; } } other stuffs: public static final RegistryObject<Item> EXPLOSIVE_ARROW = ITEMS.register("explosive_arrow", () -> new ExplosiveArrowItem(new Item.Properties().group(ModItemGroup.Epic_Items))); public static final RegistryObject<EntityType<ExplosiveArrowEntity>> EXPLOSIVE_ARROW = ENTITY_TYPES.register("explosive_arrow", () -> EntityType.Builder.create((EntityType.IFactory<ExplosiveArrowEntity>) ExplosiveArrowEntity::new, EntityClassification.MISC) .size(0.5F, 0.5F).build("explosive_arrow")); mappings channel: 'snapshot', version: '20210309-1.16.5'
    • may i ask what it was that fixed it, I'm having the same problem and its frustrating because I'm making an origin.
    • I need to accesses byPath field of net.minecraft.client.renderer.texture.TextureManager. As I found out I need to use accesstransformer.cfg file and make the field public via it. In this file field names look like f_<numbers>. And I was unable to figure out, how to get those. It seems like it is connected to something called mappings (thing left after Minecraft decompile process). How can I get such a name for a class field?
    • The game crashed whilst rendering overlay Error: java.lang.OutOfMemoryError: Java heap space Exit Code: -1   Crash Report:                                              Log: https://pastebin.com/9NMLr5bD       https://pastebin.com/av6Q2jCf Password: gpTq3Gvkc5                     qdF0BeJGYN   Any suggestions what should i do here?
  • Topics

×
×
  • Create New...

Important Information

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