Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Zamion101

Members
  • Joined

  • Last visited

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. 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
  11. FMLPostInitializationEvent / RecipeManager class. CraftingHelper can't find minecraft:stick recipe because we're removing... So when you reloadRecipes don't give crash.
  12. https://pastebin.com/bqGt0MQH
  13. 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.
  14. 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(); } }
  15. When i call Iterator<Recipe> recipe = ForgeRegisteries.RECIPES.iterator(); recipe.remove(); Throws java.lang.UnsupportedOperationException: remove
  16. 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.
  17. 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 ?
  18. Thank You Sooooooooo Much.... I fix it
  19. I don't understand sorry how to do, you explain pls ?
  20. 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); }
  21. Important And Need Quickly Release New Mod Version...
  22. Please Write Correct Working Code I Need Help You!

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.