Jump to content

Kiwilis

Members
  • Posts

    43
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Kiwilis's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. What does the integer parameter of setBlock() do?
  2. 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
  3. But why can't it find vanilla textures like "minecraft:textures/blocks/jungle_log.png"?
  4. 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
  5. 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?
  6. 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".
  7. 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.
  8. Where does getShape() get called from?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.