Skip to content

Commit

Permalink
Update to 18w10c
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Mar 12, 2018
1 parent 47eda6b commit 41628db
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ execute if block ~ ~-1 ~ ice run scoreboard players set @s barrelHeat -15
execute if block ~ ~-1 ~ ice run scoreboard players set @s barrelHeat -10
execute if block ~ ~-1 ~ torch run scoreboard players set @s barrelHeat 1
execute if block ~ ~-1 ~ lava run scoreboard players set @s barrelHeat 2
execute if block ~ ~-1 ~ flowing_lava run scoreboard players set @s barrelHeat 2
execute if block ~ ~-1 ~ fire run scoreboard players set @s barrelHeat 4
execute if block ~ ~-2 ~ netherrack if block ~ ~-1 ~ fire run advancement grant @a[distance=..4] only skymode4:nether_age/fire_heat
# set extremely high for debugginng
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,5 @@ execute if entity @s[tag=barrelCast,scores={barrelContent=27},tag=barrelHopperOu
tag @s add barrelBreak
execute if block ~ ~ ~ barrier if block ~ ~1 ~ air run tag @s remove barrelBreak
execute if block ~ ~ ~ barrier if block ~ ~1 ~ lava run tag @s remove barrelBreak
execute if block ~ ~ ~ barrier if block ~ ~1 ~ flowing_lava run tag @s remove barrelBreak
execute if block ~ ~ ~ barrier if block ~ ~1 ~ water run tag @s remove barrelBreak
execute if block ~ ~ ~ barrier if block ~ ~1 ~ flowing_water run tag @s remove barrelBreak
execute if entity @s[tag=barrelBreak] run function skymode4:modules/barrel/remove
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
## convert lava to obsidian ##
execute if block ~ ~1 ~ water run tag @s add barrelTemp
execute if block ~ ~1 ~ flowing_water run tag @s add barrelTemp
scoreboard players set @s[tag=barrelTemp] barrelContent 5
scoreboard players set @s[tag=barrelTemp] barrelTime -1
tag @s[tag=barrelTemp] remove barrelTemp

## convert lava destroy ##
scoreboard players add @s[tag=barrelWooden] barrelTime 1
tag @s[tag=barrelWooden,scores={barrelTime=3..}] add barrelTemp
execute at @s[tag=barrelTemp] run setblock ~ ~ ~ flowing_lava
execute at @s[tag=barrelTemp] run setblock ~ ~ ~ lava
execute at @s[tag=barrelTemp] run particle smoke ~ ~0.4 ~ 0.2 0.2 0.2 0.03 100
tag @s[tag=barrelTemp] remove barrelTemp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
execute positioned ~ ~0.5 ~ if entity @e[type=item,distance=..1] run function skymode4:modules/barrel/check_items

## add fluid ##
execute if entity @s[scores={barrelContent=0}] if block ~ ~1 ~ flowing_water run function skymode4:modules/barrel/add/water
execute if entity @s[scores={barrelContent=0}] if block ~ ~1 ~ flowing_lava run function skymode4:modules/barrel/add/lava
execute if entity @s[scores={barrelContent=0}] if block ~ ~1 ~ water run function skymode4:modules/barrel/add/water
execute if entity @s[scores={barrelContent=0}] if block ~ ~1 ~ lava run function skymode4:modules/barrel/add/lava

## remove items ##
execute if entity @e[limit=1,distance=..1,type=slime,tag=barrelTop,nbt={HurtTime:9s}] run function skymode4:modules/barrel/top/click
Expand Down

0 comments on commit 41628db

Please # to comment.