
-
Build failed successfully...
- How do you change BlockState values in a use() method?
What does the integer parameter of setBlock() do?- How do you change BlockState values in a use() method?
Thank you!- How do you change BlockState values in a use() method?
Hi, I tried to add a use() method to my custom block, that should change a BlockState value; I tried to do it using BlockState.setValue(), however that didn't do anything. I thought this was due to setValue() only returning a changed BlockState, not changing it directly, so I tried sth. like state = state.setValue(); however that still didn't accomplish anything. I'm wondering, whether I'm doing sth. obvious wrong or do I need to use a different method? Class in question: https://github.com/Kiwilis/simple-automation/blob/main/src/main/java/kiwilis/simpleautomation/common/block/CaoutchoucDrain.java- Is there any function to rotate a VoxelShape?
Thanks!- Minecraft fails to load all textures (even vanilla ones) defined in a modded block model
Oh! Thanks!- Minecraft fails to load all textures (even vanilla ones) defined in a modded block model
But there is!- Minecraft fails to load all textures (even vanilla ones) defined in a modded block model
But why can't it find vanilla textures like "minecraft:textures/blocks/jungle_log.png"?- Minecraft fails to load all textures (even vanilla ones) defined in a modded block model
Hi there, I tried to add a two custom block models for my modded block, but Minecraft fails to load all textures defined in the models. [17:57:13] [Worker-Main-6/WARN]: Unable to load model: 'simple_automation:caoutchouc_drain#inventory' referenced from: simple_automation:caoutchouc_drain#inventory: java.io.FileNotFoundException: simple_automation:models/item/caoutchouc_drain.json [17:57:14] [Worker-Main-10/ERROR]: Using missing texture, unable to load simple_automation:textures/blocks/caoutchouc_drain_bottle_top.png : java.io.FileNotFoundException: simple_automation:textures/blocks/caoutchouc_drain_bottle_top.png [17:57:14] [Worker-Main-7/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/jungle_log.png : java.io.FileNotFoundException: minecraft:textures/blocks/jungle_log.png [17:57:14] [Worker-Main-8/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/glass.png : java.io.FileNotFoundException: minecraft:textures/blocks/glass.png Log: https://www.toptal.com/developers/hastebin/qipofatequ.yaml Model 1: https://github.com/Kiwilis/simple-automation/blob/main/src/main/resources/assets/simple_automation/models/block/caoutchouc_drain_with_bottle.json Model 2: https://github.com/Kiwilis/simple-automation/blob/main/src/main/resources/assets/simple_automation/models/block/caoutchouc_drain_without_bottle.json- Is there any function to rotate a VoxelShape?
Hi, I'm trying to add a block with a custom model and hitbox, that can face in any horizontal direction, because of that I need a VoxelShape for each direction. Now my question is, do I have to define each VoxelShape by hand or is there a function to rotate a VoxelShape?- How do you add a custom hitbox to a block?
Solved it!- How do you add a custom hitbox to a block?
When I try @Override getState() I get this error: "error: getShape(BlockState,BlockGetter,BlockPos,CollisionContext) in CaoutchoucDrain cannot override getShape(BlockState,BlockGetter,BlockPos,CollisionContext) in BlockBehaviour".- How do you add a custom hitbox to a block?
Thanks!- How do you add a custom hitbox to a block?
Set a custom hitbox for my block, but what class needs to call the function and what schould be the parameters. I tried to look into the minecraft code for an example of the method being called there, but couldn't find one.- How do you add a custom hitbox to a block?
Where does getShape() get called from? - How do you change BlockState values in a use() method?
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.