Skip to content
This repository was archived by the owner on Jan 29, 2021. It is now read-only.

Commit 5b29b66

Browse files
committed
Modified file names and corrected code
1 parent c48d24f commit 5b29b66

13 files changed

+5
-9
lines changed
4 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
if(${input$entity} instanceof LivingEntity)((LivingEntity)${input$entity}).setHealth(${input$entity}.getHealth()+${input$amount}f);
1+
if(${input$entity} instanceof LivingEntity)((LivingEntity) ${input$entity}).setHealth(((${input$entity} instanceof LivingEntity)?((LivingEntity) ${input$entity}).getHealth():-1) + ${input$amount}f);
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
if(world instanceof ServerWorld) ((ServerWorld)world).addLightningBolt(new LightningBoltEntity(world,(int)${input$x},(int)${input$y},(int)${input$z},true));
1+
if(world instanceof ServerWorld) ((ServerWorld)world).addLightningBolt(new LightningBoltEntity(world.getWorld(),(int)${input$x},(int)${input$y},(int)${input$z},true));
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
${input$entity}.attackEntityFrom(DamageSource.GENERIC,-${input$amount}f);
1+
if(${input$entity} instanceof LivingEntity)((LivingEntity) ${input$entity}).setHealth(((${input$entity} instanceof LivingEntity)?((LivingEntity) ${input$entity}).getHealth():-1) + ${input$amount}f);
File renamed without changes.
4 KB
Binary file not shown.
4 KB
Binary file not shown.

src/procedures/._item_is_tool.json

4 KB
Binary file not shown.
4 KB
Binary file not shown.

0 commit comments

Comments
 (0)