diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/C4Entity.java b/src/main/java/com/atsuishio/superbwarfare/entity/C4Entity.java index 20a397a06..b1d493f71 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/C4Entity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/C4Entity.java @@ -279,7 +279,7 @@ public class C4Entity extends Projectile implements GeoEntity { protected void onHitEntity(EntityHitResult pResult) { super.onHitEntity(pResult); Entity entity = pResult.getEntity(); - if (entity == this.getVehicle()) return; + if (tickCount < 2 && entity == this.getVehicle()) return; this.entityData.set(TARGET_UUID, entity.getStringUUID()); this.onEntity = true; this.setDeltaMovement(this.getDeltaMovement().multiply(0, 0, 0)); diff --git a/src/main/resources/data/superbwarfare/recipes/detonator_crafting.json b/src/main/resources/data/superbwarfare/recipes/detonator_crafting.json new file mode 100644 index 000000000..84676cf6e --- /dev/null +++ b/src/main/resources/data/superbwarfare/recipes/detonator_crafting.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:crafting_shaped", + "category": "misc", + "pattern": [ + "a", + "b" + ], + "key": { + "a": { + "item": "minecraft:redstone_torch" + }, + "b": { + "item": "minecraft:stone_button" + } + }, + "result": { + "item": "superbwarfare:detonator", + "count": 1 + } +} \ No newline at end of file