BlockBehaviour.Properties
for signs
This commit is contained in:
parent
48c85c1002
commit
3ee132e7ff
1 changed files with 16 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
package org.betterx.bclib.complexmaterials;
|
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.Blocks;
|
||||||
import net.minecraft.world.level.block.state.BlockBehaviour;
|
import net.minecraft.world.level.block.state.BlockBehaviour;
|
||||||
import net.minecraft.world.level.block.state.properties.NoteBlockInstrument;
|
import net.minecraft.world.level.block.state.properties.NoteBlockInstrument;
|
||||||
|
@ -62,4 +63,19 @@ public class BehaviourBuilders {
|
||||||
.mapColor(color)
|
.mapColor(color)
|
||||||
.instrument(NoteBlockInstrument.BASEDRUM);
|
.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);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue