-
Posts
169 -
Joined
-
Last visited
Posts posted by nov4e
-
-
Do I have to implement other classes in the tile entity class for store data?
-
2 hours ago, SaltStation said:
IFluidHandler
What is that?
-
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 tested everything and seems that removing
2 hours ago, desht said:if(stack == new ItemStack(this))
works.
-
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); } } } }
-
@Override public void setDamage(ItemStack stack, int damage) { if(damage > 1) { stack.setItemDamage(damage); } }
-
1 hour ago, loordgek said:
is the item your own ??
yes
-
so how can I set that a item does not break?
-
Hello. Does exist a @SubscribeEvent that makes the item break when has durability 0? If yes how its called?
-
How can I get podzol blockstate correctly?
For now I tried :
Blocks.DIRT.getStateFromMeta(BlockDirt.DirtType.PODZOL.getMetadata()
Thank you.
-
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?
-
Or just an example from a mod would be useful
-
4 hours ago, perigrine3 said:
I know what the code does though, just so nobody thinks I have no clue. I just don't know what the modid part is.
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".
-
You need to set the build path with the original mod and set it as a dependency in your @Mod class.
Are you using Eclipse or IntelliJ?
-
On 4/27/2019 at 4:02 AM, Acid Gamer said:
I found the Dispenser class and I'm using it's code as a ref for what I should do... wish me luck
If you are making a crafting table why you take the code from the dispenser? Just take the crafting table one.
-
-
1 hour ago, loordgek said:
?? i dont understand
Basically replace a block with another block.
-
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?
-
-
26 minutes ago, loordgek said:
yes
done. Basically its the same thing it does not work.
-
-
13 hours ago, loordgek said:
dont do it like this first check if the player is null and if the world if remote and then loop over your recipes
So I do have to do this checks after checking if the player is sneaking?
13 hours ago, loordgek said:have you placed a breakpoint on it ??
What do you mean with breakpoint?
-
I actually registered it with a @EventBusSubscriber. Maybe do I have to register it via MinecraftForge.EVENT_BUS.register(listener);
-
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.
- 1
Cauldron as a Tank?
in Modder Support
Posted
Well, now I'm working on a IFluidTankProperties but how can i return that it only can take water in canFillFluidType and canDrainFluidType???