
Everything posted by Kiwilis
-
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 add a custom hitbox to a block?
Thanks!- How do you add a custom hitbox to a block?
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.- Sth. keeps generating a .gitignore file in bin/main
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?- How to add a smelting recipe with an item that remains in the ingredient slot
What should you set the Ingredient parameter of SimpleCookingRecipeBuilder.cooking() to?- How to add a smelting recipe with an item that remains in the ingredient slot
In which class is that method located?- How to add a smelting recipe with an item that remains in the ingredient slot
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.- Are ItemGroups client or server-sided?
The CreativeModeTabs require an index number, what should I set this to, to prevent overlaps with other mods?- Are ItemGroups client or server-sided?
Thank you!- Are ItemGroups client or server-sided?
Actually can't find the the temGroup class. What's the import path?- Are ItemGroups client or server-sided?
Thanks! - 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.