调整C4逻辑和配方
This commit is contained in:
parent
52af5ad762
commit
1cc58756e6
3 changed files with 8 additions and 4 deletions
|
@ -112,7 +112,11 @@ public class C4Entity extends Projectile implements GeoEntity {
|
|||
}
|
||||
|
||||
if (!player.getAbilities().instabuild) {
|
||||
ItemHandlerHelper.giveItemToPlayer(player, new ItemStack(ModItems.C4_BOMB.get()));
|
||||
ItemStack stack = new ItemStack(ModItems.C4_BOMB.get());
|
||||
if (this.getEntityData().get(IS_CONTROLLABLE)) {
|
||||
stack.getOrCreateTag().putBoolean("Control", true);
|
||||
}
|
||||
ItemHandlerHelper.giveItemToPlayer(player, stack);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -16,6 +16,6 @@
|
|||
},
|
||||
"result": {
|
||||
"item": "superbwarfare:c4_bomb",
|
||||
"count": 1
|
||||
"count": 2
|
||||
}
|
||||
}
|
|
@ -11,12 +11,12 @@
|
|||
"item": "superbwarfare:high_energy_explosives"
|
||||
},
|
||||
"c": {
|
||||
"item": "minecraft:redstone_torch"
|
||||
"item": "minecraft:comparator"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"item": "superbwarfare:c4_bomb",
|
||||
"count": 1,
|
||||
"count": 2,
|
||||
"nbt": {
|
||||
"Control": true
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue