Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Kiwilis

Members
  • Joined

  • Last visited

Everything posted by Kiwilis

  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?
  9. HI, I've added a block with a custom block model, but I just realized that you need to add a custom hitbox as well, for things like lighting to work properly.
  10. Hello, I'm using the Forge 37.0.126 MDK with eclipse and GitHub Desktop. And sth. keeps generating a .gitignore file in bin/main, that I don't want there. What program generates it and how can I disable it?
  11. What should you set the Ingredient parameter of SimpleCookingRecipeBuilder.cooking() to?
  12. Hi, I wanted to add a smelting recipe, where you would put a filled bottle in the ingredient slot and when the smelting is complete you would receive an item in the result slot and an empty bottle would remain in the ingredient slot, however I couldn't find any good resources elsewhere on how to add a recipe like this.
  13. The CreativeModeTabs require an index number, what should I set this to, to prevent overlaps with other mods?
  14. Actually can't find the the temGroup class. What's the import path?

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.