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
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);
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);
4 KB
Binary file not shown.
4 KB
Binary file not shown.

src/procedures/._item_is_tool.json

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

src/procedures/entity_deal_custom_damage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"message0": "Deal (int) %1 custom damage (hearts count * 2) to %2 localized as %3",
2+
"message0": "Deal %1 custom damage (hearts count * 2) to %2 localized as death.attack.%3",
33
"args0": [
44
{
55
"type": "input_value",

src/procedures/item_increase_nbt_tag.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
"tag",
3333
"item",
3434
"increase"
35-
],
36-
"dependencies": [{
37-
"name": "itemstack",
38-
"type": "itemstack"
39-
}]
35+
]
4036
}
4137
}

0 commit comments

Comments
 (0)