BlockBehaviour.Properties for signs

This commit is contained in:
Frank 2023-05-18 01:15:56 +02:00
parent 48c85c1002
commit 3ee132e7ff

View file

@ -1,5 +1,6 @@
package org.betterx.bclib.complexmaterials;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.state.properties.NoteBlockInstrument;
@ -62,4 +63,19 @@ public class BehaviourBuilders {
.mapColor(color)
.instrument(NoteBlockInstrument.BASEDRUM);
}
public static BlockBehaviour.Properties createSign(MapColor color) {
return BlockBehaviour.Properties.of()
.mapColor(color)
.forceSolidOn()
.instrument(NoteBlockInstrument.BASS)
.noCollission()
.strength(1.0f)
.ignitedByLava();
}
public static BlockBehaviour.Properties createWallSign(MapColor color, Block dropBlock) {
return createSign(color).dropsLike(dropBlock);
}
}