Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/27/19 in all areas

  1. Maybe the problem is not explained clearly in the topic. For short, I am going to create a number of chips to act as keys for some machine, but those chips are different instances of one class with different nbt data to make some differences. Thus, using this approach, there need huge codes to realize registry events and I think that is kind of unpractical. Therefore, I want to know whether there is an efficient way to realize this thing because, for blocks, I only need to create a PropertyEnum variable and an Enum class to write down different block states. I really appreciate any help or hints
    1 point
  2. This is should not be the case, and most definitly is not the intention. You're using RecipeType incorrectly. It is meant to be a 'machine' type system. Which is why we have 'CRAFTING' and 'SMELTING' and not 'SHAPELESS'. Note that RecipeType is not the type in the json. That is your serializer.
    1 point
  3. got it working. the problem was you set the recipe to early and your grass_ball was null move https://github.com/nov4e/Exa/blob/master/src/main/java/exa_resources/forge/ExaResources.java#L38 to init. the way you register your items and blocks is wrong https://github.com/nov4e/Exa/blob/master/src/main/java/exa_resources/forge/features/ModItems.java#L81 dont do that let forge do that for you, that is why @ObjectHolder exist https://github.com/nov4e/Exa/blob/master/src/main/java/exa_resources/forge/base/ItemMiniShovel.java#L70 dont compare strings like that, read this https://stackoverflow.com/questions/513832/how-do-i-compare-strings-in-java
    1 point
  4. Don't put it in the IRecipe registry event; put it in something like the post init instead.
    1 point
  5. I can replace this: With this: nbtTagCompound.setInteger("lIndex", (nbtTagCompound.getInteger("lIndex") + 1) % 4);
    1 point
  6. I don't know exactly what you need to do but I think it needs to be something along the lines of Blocks.WOOL.getDefaultState().withProperty(); Thing is I have not messed with wool so I don't know what properties it has or what you need to put inside the withProperty() part
    1 point
  7. You can just hide every item doing: for(Item i : ForgeRegistries.ITEMS) { if(i.getCreatorModId(new ItemStack(i)).equals("minecraft")) { i.setCreativeTab(null); } } That means for every item in forge, if the item has the modid "minecraft" it will set the item's creative tab to null.
    1 point
  8. See comments. Now go learn Java.
    1 point
  9. Hi, when i click on play it shows this error. Please help. Thanks. crash-2019-04-27_10.01.48-client.txt
    0 points
×
×
  • Create New...

Important Information

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