
Megaton_216_
Members-
Content Count
31 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout Megaton_216_
-
Rank
Tree Puncher
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
[1.16.4] I need help to fix an IllegalArgumentException
Megaton_216_ replied to Megaton_216_'s topic in Modder Support
yep that seems to be it. THANKS! -
A while ago I made a tool that cycles through blockstates on fabric. I am trying to do the same thing in forge but I get this error: java.lang.IllegalArgumentException: Cannot set property IntegerProperty{name=decor, clazz=class java.lang.Integer, values=[0, 1, 2, 3]} as it does not exist in Block{null} I'm not sure what the error is in my code so im asking for help My code: import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.state.IntegerProperty; import net.minecraft.state.StateContainer; public class DecorableBlock extends Block{ public static final IntegerProperty DECOR = IntegerProperty.create("decor", 0, 3); public DecorableBlock(Properties properties) { super(properties); setDefaultState(getStateContainer().getBaseState().with(DECOR, 0)); } protected void appendProperties(StateContainer.Builder<Block, BlockState> stateContainer) { stateContainer.add(DECOR); } }
-
[1.15.2]How to make a blockstate for changing texture of block
Megaton_216_ replied to Megaton_216_'s topic in Modder Support
What's the limit? -
[1.15.2]How to make a blockstate for changing texture of block
Megaton_216_ replied to Megaton_216_'s topic in Modder Support
Ok I know I need a different model but I don't understand why the fence would be a good reference. It does change the model but I dont think the directional boolean properties help since all my block would do is depend on if the player right-clicked. -
[1.15.2]How to make a blockstate for changing texture of block
Megaton_216_ replied to Megaton_216_'s topic in Modder Support
I dont want the blockstate to be dependent on direction. Yeah I think NOTE_0_24 which is for the different note pitches is most like what im trying to do. It has multiple states that cycle. I just dont know how it affects the note color and I think that would be what I need. -
Megaton_216_ started following What Are Child Mods? and [1.15.2]How to make a blockstate for changing texture of block
-
I want to make it so that when I right-click on a block, it changes the texture of the block. There will be more than two textures that will be cycled through and I want to know how to make a blockstate for something like this. Or if there's an existing one that works for this or something it would be a big help.
-
Oh ok that's pretty insignificant lol. Thanks.
-
When looking at the mods you have installed and I've seen other people mention it before. Don't remember where tho lol.
-
What the title says.
-
Thanks!
-
In mymod/tags/blocks { "replace": false, "values": [ "mymod:newstonea", "mymod:newstoneb", "mymod:newstonec", "mymod:newstoned", "mymod:newstonee", "mymod:newstonef", "mymod:newstoneg" ] }
-
[1.15.2] Transparent block makes adjacent blocks invisible
Megaton_216_ replied to Megaton_216_'s topic in Modder Support
Lol I fixed it myself like immediately after I posted this topic. Sorry if that caused any problems but thanks anyways. -
I'm trying to make my own stone_pickaxe recipe that uses a tag in place of cobblestone. The problem is that the recipe doesn't actually work when I run the game and I don't know why. code for the new recipe: { "type": "minecraft:crafting_shaped", "pattern": [ "XXX", " # ", " # " ], "key": { "#": { "item": "minecraft:stick" }, "X": { "tag": "mymod:stones" } }, "result": { "item": "minecraft:stone_pickaxe" } }