Hello, I maded a custom cauldron extending the block to BlockCauldron and setting the water level with blockstate like in vanilla. The problem is that other mods' buckets cannot put the water in it beacuse it has to be a tank block. My questions are: How can I do that? Do I need a TileEntity? If yes should I use blockstate levels? Thanks for reading.
I changed it a little bit:
@Override
public void setDamage(ItemStack stack, int damage) {
if(stack == new ItemStack(this)) {
if(damage < stack.getItem().getMaxDamage()) {
if(damage > 1) {
super.setDamage(stack, damage);
}
}
}
}
I tried to make a category and i registered it and it not shows in-game. Here are the classes: https://github.com/nov4e/Exa/tree/master/src/main/java/exa_resources/forge/compat/jei/ground_digging
Also how can I initialize the ground digging recipes?
Well, when you execute the command /give in game, you need to put "minecraft:the_item_you_want" right? Well, forge consider minecraft as a mod so the minecraft modid is simply "minecraft".
Thank you @loordgek for your reply!! I finally fixed it. I will fix the item registry and i will give a look to string comparing. Thank you?
Can I ask 1 more thing? How can I set a block to another block?
@Cadiboo Yes, I coded it with Mod.EventBusSubscribe using a static void. I just said if i try the other method will it work?
@loordgek So basically I have to run the debug client, right?
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.