Skip to content

Commit

Permalink
Fix fire Item texture, Break fire instantly with no particles
Browse files Browse the repository at this point in the history
  • Loading branch information
Badtz committed Oct 14, 2023
1 parent e2d5bc1 commit db77634
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 84 deletions.
10 changes: 8 additions & 2 deletions src/main/java/me/woach/bone/blocks/BoneFireBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ public String asString() {
private final float damage;

public BoneFireBlock() {
super(AbstractBlock.Settings.create().mapColor(MapColor.YELLOW).replaceable().noCollision().breakInstantly()
.luminance(state -> 15).sounds(BlockSoundGroup.WOOL).pistonBehavior(PistonBehavior.DESTROY));
super(AbstractBlock.Settings.create().mapColor(MapColor.LICHEN_GREEN).replaceable().noCollision()
.breakInstantly()
.luminance(state -> 15).sounds(BlockSoundGroup.WOOL).pistonBehavior(PistonBehavior.DESTROY)
.breakInstantly());
this.damage = 2;
setDefaultState(getStateManager().getDefaultState().with(TYPE, FireType.JORD));
}
Expand All @@ -65,6 +67,10 @@ public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos po
return BASE_SHAPE;
}

@Override
protected void spawnBreakParticles(World world, PlayerEntity player, BlockPos pos, BlockState state) {
}

private boolean checkConsumptionParameters(World world, Entity entity, BlockPos pos) {
BlockEntity be = world.getBlockEntity(pos.up());
if (be == null || !be.getType().equals(Bone.BONE_FORGE_BLOCK_ENTITY))
Expand Down
85 changes: 3 additions & 82 deletions src/main/resources/assets/bone/models/item/bone_fire.json
Original file line number Diff line number Diff line change
@@ -1,85 +1,6 @@
{
"parent": "bone:block/bone_fire",
"display": {
"ground": {
"translation": [
0,
2,
0
],
"scale": [
0.3,
0.3,
0.3
]
},
"gui": {
"rotation": [
30,
225,
0
],
"translation": [
0,
0,
0
],
"scale": [
0.625,
0.625,
0.625
]
},
"thirdperson_righthand": {
"rotation": [
10,
-45,
0
],
"translation": [
0,
1.5,
-2.75
],
"scale": [
0.375,
0.375,
0.375
]
},
"firstperson_righthand": {
"rotation": [
0,
-135,
25
],
"translation": [
0,
4,
2
],
"scale": [
0.4,
0.4,
0.4
]
},
"fixed": {
"rotation": [
0,
0,
0
],
"translation": [
0,
0,
0
],
"scale": [
0.5,
0.5,
0.5
]
}
"parent": "item/generated",
"textures": {
"layer0": "bone:block/jord_fire_0"
}
}

0 comments on commit db77634

Please sign in to comment.