Jump to content

Zamion101

Members
  • Posts

    53
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Zamion101

  1. How to register your Models do you use @SubscribeEvent public static void registerModels(ModelRegistryEvent event) and ModelLoader.setCustomModelResourceLocation([ITEM],0,new ModelResourceLocation([ITEM].getRegistryName(),"inventory")); ?
  2. Use this json instead of your (item/whitelamp.json) { "parent": "<MOD_ID>:block/<BLOCK_NAME>" } also don't forgive blackstates { "variants": { "normal": { "model": "<MOD_ID>:<BLOCK_NAME>" } } } Edit: My opinion don't use MrCrayfish Model Creator. In 0.6.0 version doesn't work UV's and scale correctly. You can use BlockBench
  3. I also have a same problem but my problem is not dark block faces. As you can see in the picture block face doesn't rendering under my block.
  4. Also you can use Hardcore and JSON together like reading data from JSON and turn into Harcode.
  5. I'm working on Hardcore Minecraft Mod and i added Saw to game and i want to have sound when item used so i decided adding the sound but i have an problem with playing sound. Sound Registery works perfectly and i can play sound with /playsound command. System.out's in the PacketPlaySound works perfectly and player recieve "Test the Message" message. I made some search on google and i found i must call sound both client and server for play sound. But i can't figured out.
  6. For my first question i did it. @Override public int getMaxDamage(ItemStack stack) { int multiplier = getColorPalette()[(stack.getItemDamage()-1 <= 0) ? 0 : stack.getMetadata()-1].getDurabilityMultiplier(); return (stack.getItemDamage()*20*multiplier)+50; }
  7. I have 2 little question; I created Item which contains subItems (4 different type) and this subItems has colorMultiplier. Firstly i want to get different ItemDurability per subItem, how can i do? Secondly i want to subItems stay in crafting table but descrease durability is it possible with subItems? if is what should i do? I Also try to use hasContainerItem and getContainerItem methods but when i used this methods returns my subItems rather than changing durability.
  8. I have 2 little question; I created Item which contains subItems (4 different type) and this subItems has colorMultiplier. Firstly i want to get different ItemDurability per subItem, how can i do? Secondly i want to subItems stay in crafting table but descrease durability is it possible with subItems? if is what should i do? Edit: I Also try to use hasContainerItem and getContainerItem methods but when i used this methods returns my subItems rather than changing durability.
  9. Oh i get it Thank You for help.
  10. https://imgur.com/a/sWeF0Lb
  11. I'm working on Mod which makes minecraft more Hardcore. But i figured one major problem in my mod. This problem is my custom item doesn't disappear after crafting another item with my custom item. Before Crafting After Crafting
  12. FMLPostInitializationEvent / RecipeManager class. CraftingHelper can't find minecraft:stick recipe because we're removing... So when you reloadRecipes don't give crash.
  13. https://pastebin.com/bqGt0MQH
  14. Because i want. Because IDK Because if you don't call CraftingHelper.loadRecipes crashing game when open crafting table or player inventory. Next time. Now don't have a any error.
  15. Okey ı understand now and i fixed my error thank you so much and i give here the my code for everyone. @diesieben07 Thank you... /*POST-INIT*/ new RecipeManager(Items.STICK); or new RecipeManager(Blocks.GOLD_BLOCK); /*RECIPE MANAGER*/ public class RecipeManager extends ForgeRegistries{ public RecipeManager(Item item){ ForgeRegistry<IRecipe> r = (ForgeRegistry<IRecipe>) RECIPES; r.remove(item.getRegistryName()); CraftingHelper.loadRecipes(false); CraftingManager.init(); } public RecipeManager(ItemStack itemStack){ ForgeRegistry<IRecipe> r = (ForgeRegistry<IRecipe>) RECIPES; r.remove(itemStack.getItem().getRegistryName()); CraftingHelper.loadRecipes(false); CraftingManager.init(); } public RecipeManager(Block block){ ForgeRegistry<IRecipe> r = (ForgeRegistry<IRecipe>) RECIPES; r.remove(Item.getItemFromBlock(block).getRegistryName()); CraftingHelper.loadRecipes(false); CraftingManager.init(); } }
  16. When i call Iterator<Recipe> recipe = ForgeRegisteries.RECIPES.iterator(); recipe.remove(); Throws java.lang.UnsupportedOperationException: remove
  17. I know what he said but i can't understand this message i need Extends? or anything? I write this lines of code: Iterator<IRecipe> rec = ForgeRegistries.RECIPES.iterator(); IForgeRegistryModifiable<IRecipe> r = (IForgeRegistryModifiable<IRecipe>) rec.next(); r.remove(Items.STICK.getRegistryName()); I think i do error because not crashing game but not removing too.
  18. I have a 2-3 years of Java knowledge and have 1.5 years of Spigot / Bukkit. But i want to learn Forge so i decided to create a mod. And i want remove some vanilla recipes but i don't understand what i need do can anybody help me ?
  19. Thank You Sooooooooo Much.... I fix it
  20. I don't understand sorry how to do, you explain pls ?
  21. My Setblockbounds didin't work i need help too quickly!!!! My SetblockBounds Code: public void setBlockBoundsBasedOnState(IBlockAccess blockAccess, BlockPos pos) { setBlockBoundsBasedOnState(0.0F, 0.0F, 0.0F, 1.0F, 0.001F, 1.0F); }
  22. Important And Need Quickly Release New Mod Version...
  23. Please Write Correct Working Code I Need Help You!
×
×
  • Create New...

Important Information

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