Jump to content

MrHubbard

Members
  • Posts

    28
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Location
    England
  • Personal Text
    I am new!

MrHubbard's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Oh you are joking... I was wondering why the grinder would not work but eveything else did... Please feel free to ignore. haha thank you though.
  2. So after updating my mod to 1.8.9, everything was going fine untill i realised my fuel source wasnt adding powerr to my machines. Specifically this line of code. if(canRecievePower()) { if (Itemstack[1] != null) { Item item = Itemstack[1].getItem(); if(item == Item_List.Electrified_Fuel) { --Itemstack[1].stackSize; if (Itemstack[1].stackSize <= 0) Itemstack[1] = null; power+=100; } } } public boolean canRecievePower() { if(power < maxpower) return true; else return false; }
  3. Ah thats what you meant, No it was reference but i changed the code before posting to gist the second time around.
  4. What do you mean i don't use it... ever...
  5. I have fixed the problem, my blocks and items folders in models had an extra s on them...
  6. Here's the main.java. https://gist.github.com/anonymous/387e66ecd70eb956886d Ill change the UnlocalizedNames now.
  7. PreInit in the main.java? I set it out like this because it makes it easier for me.
  8. Changed to ModelLoader.setCustomModelResourceLocation. and here's the screenshot of the jsons.
  9. There registered in the clientproxy https://gist.github.com/anonymous/6ff437ee3718f75b6bfb
  10. Do you mean it cannot find my models in the asset file or in the code?
  11. Block_List https://gist.github.com/anonymous/41b4bf082f2d980e7f74 Item_List https://gist.github.com/anonymous/e2451b8fee12c1d87ed7 fml-client-latest.log https://gist.github.com/anonymous/04122c540b190e29e87c
  12. So i have everything setup correct to my knowledge. but blocks and item textures refuse to load as well as lang file. BUT i know the folder structure is setup correctly because the Gui's are finding the right images? GUI image example Code that loads the gui texture private static final ResourceLocation grinderGuiTextures = new ResourceLocation(Reference.MOD_ID + ":textures/gui/container/SimpleMachine.png"); The folder structure is as followed > assets\trueminecraftmachines\ Blockstate example { "variants": { "facing=north": { "model": "trueminecraftmachines:grinder" }, "facing=east": { "model": "trueminecraftmachines:grinder", "y": 90 }, "facing=south": { "model": "trueminecraftmachines:grinder", "y": 180 }, "facing=west": { "model": "trueminecraftmachines:grinder", "y": 270 } } } Block Model example { "parent": "block/orientable", "textures": { "top": "trueminecraftmachines:blocks/grinder_top", "front": "trueminecraftmachines:blocks/grinder_front", "side": "trueminecraftmachines:blocks/grinder_side" } } Block Model Item example { "parent": "trueminecraftmachines:block/grinder", "display": { "thirdperson": { "rotation": [ 10, -45, 170 ], "translation": [ 0, 1.5, -2.75 ], "scale": [ 0.375, 0.375, 0.375 ] } } } Item Model Example { "parent": "builtin/generated", "textures": { "layer0": "trueminecraftmachines:items/iron_dust" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } }
  13. Been running this through my mind for the past couple of days now, where would i put this?
  14. I feel like i new this but somehow forgot, Goddamit. Thanks once again.
  15. So i recently changed the mod id and name in my reference class, and changed all other relevant code to fit in the new name and id. But now no textures are showing, but it is using the Lang file, so i know it is going to the new asset folder. Reference Class package hubbard.randommachines; public class Reference { public static final String MOD_ID = "RandomMachines"; public static final String MOD_NAME = "Random Machines and more"; public static final String MOD_VERSION= "2.1.0"; public static final String CLIENT_PROXY_CLASS = "hubbard.randommachines.proxy.ClientProxy"; public static final String SERVER_PROXY_CLASS = "hubbard.randommachines.proxy.CommonProxy"; } Bronze_Block.json Block Model Example { "parent": "block/cube_all", "textures": { "all": "RandomMachines:blocks/Bronze_Block" } } Bronze_Block.json BlockState Example { "variants": { "normal": { "model": "RandomMachines:Bronze_Block" } } } This is what registers the textures in my Block_List.class public static void RegisterRender(Block block) { Item item = Item.getItemFromBlock(block); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory")); }
×
×
  • Create New...

Important Information

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