You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I am currently at forge 1.20.1
I wanted to use the modifyarg mixin to change the block property of a block, something like this to make certain block require tool to drop
@Modifyarg(method = something, at = @AT(something))
private static BlockBehaviour.Properties inject(BlockBehaviour.Properties p){
return p.requireCorrectToolForDrops;
}
But I don't know what to put in the bracket after Modify Args
What should I do for example make the oak planks requiring tool to drop, what should I fill in @Modifyarg(_)
public static final Block OAK_PLANKS = register("oak_planks", new Block(BlockBehaviour.Properties.of().mapColor(MapColor.WOOD).instrument(NoteBlockInstrument.BASS).strength(2.0F, 3.0F).sound(SoundType.WOOD).ignitedByLava()));
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.