Jump to content

hanschrome

Members
  • Posts

    4
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    Professional backend developer

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

hanschrome's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Thanks! I read the documentation and I think It has to improve. Its information is useful, but it doesn't explain everything about Forge. Forge has a lot of features that aren't on its doc. That documentation is like a "getting started". Just reading it one time, you will learn it at the moment. And documentation should has to have information about the whole system and features, which you read even if you're an experienced modder.
  2. Hello! I was looking for the official documentation about forge, and I just find tutorials and old documentation(and short) about olders forge versions. Well, I just find tutorials, but I'm not use to work with them because are longs, so explained(explaining how to develop java or how to use an IDE) and the most of the cases they haven't the enough Forge information. I want an official not explained documentation, like all software have on its website. For work, I'm force to read the Forge code or see JavaDoc, but it hasn't how to consume the API, just explains code, and I will prefer read it. So, how I couldn't find anything, I have installed a simply wiki and I will fill it down starting with 1.8.9 version. I wanted to know If I could copy on the official Wiki the page with "Forge 1.8.9 Documentation". This way the proffessional developer who are used to this kind of documentation can work more confortable. The structure should be like it Blocks Items Potions Tools ... [*]Mobs [*]... And it must have just the necessary documentation, or at least on summary. For example, for an Item: // Create the Item Item test_item = new ItemSword(Item.ToolMaterial.WOOD); test_item.setUnlocalizedName("test_item"); //Register it on Game GameRegistry.registerItem(test_item, "test_item"); //Register its resource on client ModelResourceLocation mr = new ModelResourceLocation("examplemod:test_item", "inventory") Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(test_item, 0, mr); And It's an example, really It should has just "Item name", "Item.ToolMaterial Object" etc. And then yes, can be an example. I have seen that for create a simply Item the people show them "superknowledge" about Java creating non-necessary proxy, classes, singletons and anothers programming models that every developer knows and doesn't need learn it. So, finally just I can offer the people my job when It will be finished and accept every help for anyone. Regards, Hans
  3. Hi! Close it Solution: On ModelResourceLocation class, read the constructors. You should use this one: public ModelResourceLocation(String p_i46081_1_, String p_i46081_2_) { this(0, parsePathString(p_i46081_1_ + '#' + (p_i46081_2_ == null?"normal"_i46081_2_))); } On my case: new ModelResourceLocation("examplemod:test_item", "inventory"); Good Luck!
  4. Hello! I'm trying to create a new simply Item, I got it but I couldn't set the texture. In my mod @Mod(modid = ExampleMod.MODID, name = "examplemod", version = ExampleMod.VERSION) public class ExampleMod { public static final String MODID = "examplemod"; public static final String VERSION = "1.0"; I register the new item: Item test_item = new Item(); test_item.setUnlocalizedName("test_item"); GameRegistry.registerItem(test_item, "test_item"); Then I register the render model item: Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(test_item, 0, new ModelResourceLocation("examplemod:test_item")); And finally that's my files' structure for resources: src/main/resources/assets/examplemod/models/item/test_item.json src/main/resources/assets/examplemod/textures/items/test_item.png When that's content for test_item.json { "parent": "builtin/generated", "textures": { "layer0": "examplemod:items/test_item" }, "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 ] } } } I have copy json and png from minecraft package in forge, using the apple model(json & png). When I launch the game, I can get my Item but it hasn't texture, purple and black you know. No errors are shown, but if I change test_item.json.textures.layer0 to another route, It shows an not found image error. So, json it's ok because else would show an error, and it doesn't. Where can be the error? Thanks for help. I will pay attention for help .
×
×
  • Create New...

Important Information

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