添加起爆器配方
This commit is contained in:
parent
b3fe6f24ad
commit
4b94ea6267
2 changed files with 21 additions and 1 deletions
|
@ -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));
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue