-
How to make an Item Edible?
That works! Thank you so much, and sorry if I was getting annoying lol. I'd be annoyed at me too.
-
How to make an Item Edible?
Alright, here's what I got. Still some errors though, any idea what's wrong? // Food public static final RegistryObject<Item> COTTON_STEAK_RAW = ITEMS.register("cotton_steak_raw", ItemBase::new); public static final RegistryObject<Item> COTTON_STEAK = ITEMS.register("cotton_steak", () -> return new Item(new Item.Properties().food(Foods.COTTON_STEAK))); public static class Foods { public static final Food COTTON_STEAK = (new Food.Builder()).hunger(8).saturation(12.8f).meat().build(); }
-
How to make an Item Edible?
It's saying cannot resolve symbol 'foodInstance'. Also, where would I place this code? // Food public static final RegistryObject<Item> COTTON_STEAK_RAW = ITEMS.register("cotton_steak_raw", ItemBase::new); public static final RegistryObject<Item> COTTON_STEAK = ITEMS.register("cotton_steak", ItemBase::new); public static class Foods { public static final Food COTTON_STEAK = (new Food.Builder()).hunger(8).saturation(12.8f).meat().build(); } new Item(new Item.Properties().food(foodInstance)) }
-
How to make an Item Edible?
How would I do this? I'm sorry I'm asking so much, I'm fairly new to this.
-
How to make an Item Edible?
Here's what I got, still not letting me eat it: // Food public static final RegistryObject<Item> COTTON_STEAK_RAW = ITEMS.register("cotton_steak_raw", ItemBase::new); public static final RegistryObject<Item> COTTON_STEAK = ITEMS.register("cotton_steak", ItemBase::new); public static class Foods { public static final Food COTTON_STEAK = (new Food.Builder()).hunger(8).saturation(12.8f).meat().build(); }
-
How to make an Item Edible?
I'm sorry, but how would I do this?
-
How to make an Item Edible?
I've edited the code, it's got a bunch of errors and I'm very confused. // Food public static final RegistryObject<Item> COTTON_STEAK_RAW = ITEMS.register("cotton_steak_raw", Foods::new); public static final RegistryObject<Item> COTTON_STEAK = ITEMS.register("cotton_steak", Foods::new);
-
How to make an Item Edible?
I've looked through the source, but I wasn't able to find any classes...
-
How to make an Item Edible?
Hey, I'm struggling with how to make my custom item edible. I get that i probably need a new item group for food items, but I'm pretty new to modding, so could anyone walk me through on how to do this? ❤️ Here's my registry code for my foods: // Food public static final RegistryObject<Item> COTTON_STEAK_RAW = ITEMS.register("cotton_steak_raw", ItemBase::new); public static final RegistryObject<Item> COTTON_STEAK = ITEMS.register("cotton_steak", ItemBase::new);
-
Adding XP to Custom Ore
How would I do that exactly?
-
Adding XP to Custom Ore
Is there any way to randomize the exp received? Like a range between 3.0-7.0 or something?
-
Adding XP to Custom Ore
That worked! Thanks so much!
-
Adding XP to Custom Ore
I'm pretty new to this stuff, so how would I go about overriding the experience? package com.pixxibunny.minecraftmod.blocks; import net.minecraft.block.OreBlock; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraftforge.common.ToolType; public class RoseOre extends OreBlock { public RoseOre() { super(Properties.create(Material.ROCK) .hardnessAndResistance(3.0f,3.0f) .sound(SoundType.STONE) .harvestLevel(2) .harvestTool(ToolType.PICKAXE)); } }
-
Adding XP to Custom Ore
I am struggling on how to add XP after harvesting my custom ore. Any ideas? Here is my ore class: package com.pixxibunny.minecraftmod.blocks; import net.minecraft.block.Block; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.item.Item; import net.minecraftforge.common.ToolType; import java.util.Random; public class RoseOre extends Block { public RoseOre() { super(Properties.create(Material.ROCK) .hardnessAndResistance(3.0f,3.0f) .sound(SoundType.STONE) .harvestLevel(2) .harvestTool(ToolType.PICKAXE)); } }
-
Help with crafting!
That worked perfectly!! Thank you so much!! ❤️
IPS spam blocked by CleanTalk.