Skip to content
This repository has been archived by the owner on Jul 31, 2019. It is now read-only.

Commit

Permalink
Chairs
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed Apr 28, 2018
1 parent ee8c358 commit f9ff40f
Show file tree
Hide file tree
Showing 53 changed files with 1,881 additions and 0 deletions.
11 changes: 11 additions & 0 deletions chairs/data-pack/data/deimosbtg/functions/chair.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Chairs
give @p minecraft:command_block{display:{"Name":"{\"text\":\"Oak Chair\",\"italic\":false}"},BlockEntityTag:{auto:1b,Command:"function deimosbtg:chair/place_oak"}} 1
give @p minecraft:command_block{display:{"Name":"{\"text\":\"Birch Chair\",\"italic\":false}"},BlockEntityTag:{auto:1b,Command:"function deimosbtg:chair/place_birch"}} 1
give @p minecraft:command_block{display:{"Name":"{\"text\":\"Spruce Chair\",\"italic\":false}"},BlockEntityTag:{auto:1b,Command:"function deimosbtg:chair/place_spruce"}} 1
give @p minecraft:command_block{display:{"Name":"{\"text\":\"Jungle Chair\",\"italic\":false}"},BlockEntityTag:{auto:1b,Command:"function deimosbtg:chair/place_jungle"}} 1
give @p minecraft:command_block{display:{"Name":"{\"text\":\"Acacia Chair\",\"italic\":false}"},BlockEntityTag:{auto:1b,Command:"function deimosbtg:chair/place_acacia"}} 1
give @p minecraft:command_block{display:{"Name":"{\"text\":\"Dark Oak Chair\",\"italic\":false}"},BlockEntityTag:{auto:1b,Command:"function deimosbtg:chair/place_dark_oak"}} 1
give @p minecraft:command_block{display:{"Name":"{\"text\":\"Cobblestone Chair\",\"italic\":false}"},BlockEntityTag:{auto:1b,Command:"function deimosbtg:chair/place_cobblestone"}} 1

# Remover
give @p minecraft:bat_spawn_egg{display:{Name:"{\"text\":\"Chair Remover\"}"},EntityTag:{NoGravity:1b,Silent:1b,Invulnerable:1b,NoAI:1b,CustomName:"{\"text\":\"Chair Remover\"}",ActiveEffects:[{Id:14b,Amplifier:0b,Duration:100,ShowParticles:0b}]}} 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:1}}],Pose:{Head:[0f,180f,0f]},Tags:["armorchair"]}
summon llama ~0 ~-1.2 ~-0.2 {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[180f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:1}}],Pose:{Head:[0f,-90f,0f]},Tags:["armorchair"]}
summon llama ~0.2 ~-1.2 ~ {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[-90f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:1}}],Tags:["armorchair"]}
summon llama ~0 ~-1.2 ~0.2 {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:1}}],Pose:{Head:[0f,90f,0f]},Tags:["armorchair"]}
summon llama ~-0.2 ~-1.2 ~ {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[90f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:2}}],Pose:{Head:[0f,180f,0f]},Tags:["armorchair"]}
summon llama ~0 ~-1.2 ~-0.2 {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[180f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:2}}],Pose:{Head:[0f,-90f,0f]},Tags:["armorchair"]}
summon llama ~0.2 ~-1.2 ~ {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[-90f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:2}}],Tags:["armorchair"]}
summon llama ~0 ~-1.2 ~0.2 {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:2}}],Pose:{Head:[0f,90f,0f]},Tags:["armorchair"]}
summon llama ~-0.2 ~-1.2 ~ {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[90f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:3}}],Pose:{Head:[0f,180f,0f]},Tags:["armorchair"]}
summon llama ~0 ~-1.2 ~-0.2 {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[180f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:3}}],Pose:{Head:[0f,-90f,0f]},Tags:["armorchair"]}
summon llama ~0.2 ~-1.2 ~ {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[-90f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:3}}],Tags:["armorchair"]}
summon llama ~0 ~-1.2 ~0.2 {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:3}}],Pose:{Head:[0f,90f,0f]},Tags:["armorchair"]}
summon llama ~-0.2 ~-1.2 ~ {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[90f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:4}}],Pose:{Head:[0f,180f,0f]},Tags:["armorchair"]}
summon llama ~0 ~-1.2 ~-0.2 {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[180f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:4}}],Pose:{Head:[0f,-90f,0f]},Tags:["armorchair"]}
summon llama ~0.2 ~-1.2 ~ {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[-90f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:4}}],Tags:["armorchair"]}
summon llama ~0 ~-1.2 ~0.2 {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:4}}],Pose:{Head:[0f,90f,0f]},Tags:["armorchair"]}
summon llama ~-0.2 ~-1.2 ~ {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[90f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gamerule commandBlockOutput false
gamerule sendCommandFeedback false
scoreboard objectives add y_rotation dummy
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Rotation
execute as @a[y_rotation=-45..44.9] run scoreboard players set @s y_rotation 0
execute as @a[y_rotation=45..134.9] run scoreboard players set @s y_rotation 1
execute as @a[y_rotation=135..179.9] run scoreboard players set @s y_rotation 2
execute as @a[y_rotation=-180..-135.1] run scoreboard players set @s y_rotation 2
execute as @a[y_rotation=-135..-44.9] run scoreboard players set @s y_rotation 3

# Remover
execute at @e[type=minecraft:bat,name="Chair Remover"] run kill @e[type=armor_stand,tag=armorchair,distance=..0.62]
execute at @e[type=minecraft:bat,name="Chair Remover"] run tp @e[type=llama,tag=llamachair,distance=..0.8,limit=1] ~ ~-500 ~
tp @e[type=minecraft:bat,name="Chair Remover"] ~ ~-500 ~
kill @e[type=minecraft:bat,name="Chair Remover"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:5}}],Pose:{Head:[0f,180f,0f]},Tags:["armorchair"]}
summon llama ~0 ~-1.2 ~-0.2 {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[180f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:5}}],Pose:{Head:[0f,-90f,0f]},Tags:["armorchair"]}
summon llama ~0.2 ~-1.2 ~ {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[-90f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:5}}],Tags:["armorchair"]}
summon llama ~0 ~-1.2 ~0.2 {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:5}}],Pose:{Head:[0f,90f,0f]},Tags:["armorchair"]}
summon llama ~-0.2 ~-1.2 ~ {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[90f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:6}}],Pose:{Head:[0f,180f,0f]},Tags:["armorchair"]}
summon llama ~0 ~-1.2 ~-0.2 {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[180f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:6}}],Pose:{Head:[0f,-90f,0f]},Tags:["armorchair"]}
summon llama ~0.2 ~-1.2 ~ {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[-90f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:6}}],Tags:["armorchair"]}
summon llama ~0 ~-1.2 ~0.2 {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:6}}],Pose:{Head:[0f,90f,0f]},Tags:["armorchair"]}
summon llama ~-0.2 ~-1.2 ~ {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[90f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
execute if score @p[distance=0..5] y_rotation matches 0 run function deimosbtg:chair/acacia0
execute if score @p[distance=0..5] y_rotation matches 1 run function deimosbtg:chair/acacia1
execute if score @p[distance=0..5] y_rotation matches 2 run function deimosbtg:chair/acacia2
execute if score @p[distance=0..5] y_rotation matches 3 run function deimosbtg:chair/acacia3
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
execute if score @p[distance=0..5] y_rotation matches 0 run function deimosbtg:chair/birch0
execute if score @p[distance=0..5] y_rotation matches 1 run function deimosbtg:chair/birch1
execute if score @p[distance=0..5] y_rotation matches 2 run function deimosbtg:chair/birch2
execute if score @p[distance=0..5] y_rotation matches 3 run function deimosbtg:chair/birch3
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
execute if score @p[distance=0..5] y_rotation matches 0 run function deimosbtg:chair/cobblestone0
execute if score @p[distance=0..5] y_rotation matches 1 run function deimosbtg:chair/cobblestone1
execute if score @p[distance=0..5] y_rotation matches 2 run function deimosbtg:chair/cobblestone2
execute if score @p[distance=0..5] y_rotation matches 3 run function deimosbtg:chair/cobblestone3
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
execute if score @p[distance=0..5] y_rotation matches 0 run function deimosbtg:chair/dark_oak0
execute if score @p[distance=0..5] y_rotation matches 1 run function deimosbtg:chair/dark_oak1
execute if score @p[distance=0..5] y_rotation matches 2 run function deimosbtg:chair/dark_oak2
execute if score @p[distance=0..5] y_rotation matches 3 run function deimosbtg:chair/dark_oak3
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
execute if score @p[distance=0..5] y_rotation matches 0 run function deimosbtg:chair/jungle0
execute if score @p[distance=0..5] y_rotation matches 1 run function deimosbtg:chair/jungle1
execute if score @p[distance=0..5] y_rotation matches 2 run function deimosbtg:chair/jungle2
execute if score @p[distance=0..5] y_rotation matches 3 run function deimosbtg:chair/jungle3
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
execute if score @p[distance=0..5] y_rotation matches 0 run function deimosbtg:chair/oak0
execute if score @p[distance=0..5] y_rotation matches 1 run function deimosbtg:chair/oak1
execute if score @p[distance=0..5] y_rotation matches 2 run function deimosbtg:chair/oak2
execute if score @p[distance=0..5] y_rotation matches 3 run function deimosbtg:chair/oak3
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
execute if score @p[distance=0..5] y_rotation matches 0 run function deimosbtg:chair/spruce0
execute if score @p[distance=0..5] y_rotation matches 1 run function deimosbtg:chair/spruce1
execute if score @p[distance=0..5] y_rotation matches 2 run function deimosbtg:chair/spruce2
execute if score @p[distance=0..5] y_rotation matches 3 run function deimosbtg:chair/spruce3
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
teleport @e[type=llama,distance=..0.3,limit=1] ~ ~-1000 ~
give @p minecraft:diamond_boots{display:{"Name":"{\"text\":\"Chair Remover\",\"italic\":false}"},Unbreakable:1,Damage:1}
kill @s
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:7}}],Pose:{Head:[0f,180f,0f]},Tags:["armorchair"]}
summon llama ~0 ~-1.2 ~-0.2 {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[180f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:7}}],Pose:{Head:[0f,-90f,0f]},Tags:["armorchair"]}
summon llama ~0.2 ~-1.2 ~ {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[-90f],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:7}}],Tags:["armorchair"]}
summon llama ~0 ~-1.2 ~0.2 {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Tags:["llamachair"]}
setblock ~ ~ ~ air
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summon armor_stand ~ ~-0.5 ~ {CustomName:"{\"text\":\"deimosbtg_chair\"}",Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:1907997,ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1,tag:{Unbreakable:1,Damage:7}}],Pose:{Head:[0f,90f,0f]},Tags:["armorchair"]}
summon llama ~-0.2 ~-1.2 ~ {Invulnerable:1,NoGravity:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Rotation:[90f],Tags:["llamachair"]}
setblock ~ ~ ~ air
1 change: 1 addition & 0 deletions chairs/data-pack/data/minecraft/tags/functions/load.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"replace": false,"values": ["deimosbtg:chair/init_load"]}
1 change: 1 addition & 0 deletions chairs/data-pack/data/minecraft/tags/functions/tick.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"replace": false,"values": ["deimosbtg:chair/init_tick"]}
6 changes: 6 additions & 0 deletions chairs/data-pack/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pack": {
"pack_format": 1,
"description": "chairs-data-pack"
}
}
Loading

0 comments on commit f9ff40f

Please sign in to comment.