Jump to content

Pyrolol

Members
  • Posts

    4
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Pyrolol's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Thanks for your response. I don't understand how it works, I need to declare blocks and GameRegistry.registerBlock on preInit and setting texture on init ? And yes I'll rename "setTexture", it's confusing. PS : Nevermind, I figured out by myself. It was a problem with preInit and init like you said, thanks you Ernio.
  2. Hi guys, I'm having problem rendering blocks on inventory. If I place the block, the rendering is good, it's only on my inventory. There is nothing suspect in logs. I'm overriding BlockOre and using a "setTexture" method to register the block : public BlockOre setTexture(String texture) { setUnlocalizedName(texture); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(this), 0, new ModelResourceLocation(MyMod.MODID + ":" + texture, "inventory")); GameRegistry.registerBlock(this, texture); return this; } on FMInitializationEvent I do : rubyOre = new IronBlockOre().setTexture("ruby_ore").setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypePiston); and here are jsons files : src/main/resources/assets/my_modid/models/block/ruby_ore.json : { "parent": "block/cube_all", "textures": { "all": "my_modid:blocks/ruby_ore" } } src/main/resources/assets/my_modid/models/item/ruby_ore.json : { "parent": "my_modid:block/ruby_ore", "display": { "thirdperson": { "rotation": [ 10, -45, 170 ], "translation": [ 0, 1.5, -2.75 ], "scale": [ 0.375, 0.375, 0.375 ] } } } src/main/resources/assets/my_modid/blockstates/ruby_ore.json : { "variants": { "normal": { "model": "my_modid:ruby_ore" } } } the texture is at src/main/resources/assets/my_modid/textures/blocks/ruby_ore.png What am i doing wrong ? Thanks you for your help.
  3. Yeah i'm moving to Forge 1.6.4 because i'm using mcp 1.6.4 right now. I can't update to 1.7.10 because I need Spigot 1.7.10 sources, so i'm waiting for Sponge Project to release their 1.8 versions. I need Forge to have more compatibility with others mods. The only problem I have is these IDs conflicts and that's why I need a way to modify my map to convert items/block with their new IDs.
  4. Hello, I'm currently moving to Forge with Minecraft 1.6.4 and I have some issues because when I opened my server I created items/blocks at really close ID of existings items, and now with minecraft updates I need to constantly change ID of new items/blocks. Before, I was using mcp so it was quite easy to change IDs but with forge it's not so I would like to know if there is any way to convert my map without any losse. (Blocks and items). I'm using Spigot and my map is 3GB actually. To override existing blocks i use that : Block.blocksList[157] = null; try { Field field = Block.class.getDeclaredField("railActivator"); field.setAccessible(true); Field modifiersfield = Field.class.getDeclaredField("modifiers"); modifiersfield.setAccessible(true); modifiersfield.setInt(field, field.getModifiers() & ~Modifier.FINAL); field.set(Block.class, new IronBlockRailPowered(251).setHardness(0.7F).setStepSound(Block.soundMetalFootstep).setUnlocalizedName("activatorRail").setTextureName("rail_activator")); but I would like to get rid of this and move definitively blocks/items ID. Is there any way ? Thank you
×
×
  • Create New...

Important Information

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