-
Posts
53 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Zamion101
-
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")); ?
-
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
-
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.
-
Also you can use Hardcore and JSON together like reading data from JSON and turn into Harcode.
-
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.
-
[1.12]SubItems stay in crafting and decrease durability
Zamion101 replied to Zamion101's topic in Modder Support
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; } -
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.
-
[1.11.2] Make item stay in crafting and decrease durability
Zamion101 replied to Villfuk02's topic in Modder Support
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. -
[1.12]Item doesn't disappearing after crafting.
Zamion101 replied to Zamion101's topic in Modder Support
Oh i get it Thank You for help. -
[1.12]Item doesn't disappearing after crafting.
Zamion101 replied to Zamion101's topic in Modder Support
https://imgur.com/a/sWeF0Lb -
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
-
FMLPostInitializationEvent / RecipeManager class. CraftingHelper can't find minecraft:stick recipe because we're removing... So when you reloadRecipes don't give crash.
-
https://pastebin.com/bqGt0MQH
-
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.
-
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(); } }
-
When i call Iterator<Recipe> recipe = ForgeRegisteries.RECIPES.iterator(); recipe.remove(); Throws java.lang.UnsupportedOperationException: remove
-
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.
-
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 ?
-
Thank You Sooooooooo Much.... I fix it
-
I don't understand sorry how to do, you explain pls ?
-
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); }