-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
oOBoomberOo
committed
Dec 29, 2019
0 parents
commit 27634f2
Showing
26 changed files
with
167 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/.datapack/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"display": { | ||
"title": "Boomber", | ||
"description": "", | ||
"icon": { | ||
"item": "minecraft:player_head", | ||
"nbt": "{SkullOwner:{Name: \"Boomber\", Properties: {textures: [{Value: \"eyJ0aW1lc3RhbXAiOjE1NTc5OTkyNDIwMjcsInByb2ZpbGVJZCI6ImExNWZmYjIxOGE2YjQ2ODlhOTQ5Y2IxOWE3MDRmYTdhIiwicHJvZmlsZU5hbWUiOiJCb29tYmVyIiwidGV4dHVyZXMiOnsiU0tJTiI6eyJ1cmwiOiJodHRwOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlL2FmYzFjZThjYWQ0MTQzOGVjYjU2N2NlMjA1NmVjOTA2M2UyMGFlMTgxYmZiNWViY2YyYWY2ZmRhNTZhNDI5YWYifX19\"}]}}}" | ||
}, | ||
"announce_to_chat": false, | ||
"show_toast": false | ||
}, | ||
"parent": "global:root", | ||
"criteria": { | ||
"trigger": { | ||
"trigger": "minecraft:tick" | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
data/boomber/advancements/rope_ladder/event/place_ladder.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"criteria": { | ||
"ladder": { | ||
"trigger": "minecraft:placed_block", | ||
"conditions": { | ||
"item": { | ||
"item": "minecraft:ladder" | ||
} | ||
} | ||
} | ||
}, | ||
"rewards": { | ||
"function": "boomber:rope_ladder/event/place_ladder" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"display": { | ||
"title": "Rope Ladder", | ||
"description": "", | ||
"icon": { | ||
"item": "minecraft:ladder" | ||
}, | ||
"announce_to_chat": false, | ||
"show_toast": false | ||
}, | ||
"parent": "boomber:boomber", | ||
"criteria": { | ||
"trigger": { | ||
"trigger": "minecraft:tick" | ||
} | ||
|
||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
data/boomber/functions/rope_ladder/event/place_ladder.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
scoreboard players set #bb.rl.raycast bb.success 0 | ||
execute if predicate boomber:rope_ladder/is_sneaking at @s anchored eyes positioned ^ ^ ^0.1 anchored feet run function boomber:rope_ladder/event/place_ladder/raycast | ||
|
||
advancement revoke @s only boomber:rope_ladder/event/place_ladder |
10 changes: 10 additions & 0 deletions
10
data/boomber/functions/rope_ladder/event/place_ladder/found.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
execute store result score #bb.rl.ladder bb.variable run clear @s minecraft:ladder 0 | ||
|
||
scoreboard players set #bb.rl.iteration bb.variable 0 | ||
function boomber:rope_ladder/ladder/rope | ||
|
||
scoreboard players operation #bb.rl.amount bb.variable = #bb.rl.iteration bb.variable | ||
scoreboard players remove #bb.rl.amount bb.variable 1 | ||
execute if entity @s[gamemode=!creative] run function boomber:rope_ladder/ladder/take | ||
|
||
scoreboard players set #bb.rl.raycast bb.success 1 |
3 changes: 3 additions & 0 deletions
3
data/boomber/functions/rope_ladder/event/place_ladder/raycast.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
execute align xyz positioned ~0.5 ~0.5 ~0.5 if block ~ ~ ~ minecraft:ladder if block ~ ~-1 ~ #boomber:rope_ladder/air run function boomber:rope_ladder/event/place_ladder/found | ||
|
||
execute as @s[distance=..5.5] if score #bb.rl.raycast bb.success matches 0 positioned ^ ^ ^0.1 run function boomber:rope_ladder/event/place_ladder/raycast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
execute unless block ~ ~ ~ minecraft:water run function boomber:rope_ladder/ladder/place/air | ||
execute if block ~ ~ ~ minecraft:water run function boomber:rope_ladder/ladder/place/waterlogged |
4 changes: 4 additions & 0 deletions
4
data/boomber/functions/rope_ladder/ladder/place/air.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
execute if block ~ ~1 ~ minecraft:ladder[facing=east] run setblock ~ ~ ~ minecraft:ladder[facing=east, waterlogged=false] | ||
execute if block ~ ~1 ~ minecraft:ladder[facing=west] run setblock ~ ~ ~ minecraft:ladder[facing=west, waterlogged=false] | ||
execute if block ~ ~1 ~ minecraft:ladder[facing=north] run setblock ~ ~ ~ minecraft:ladder[facing=north, waterlogged=false] | ||
execute if block ~ ~1 ~ minecraft:ladder[facing=south] run setblock ~ ~ ~ minecraft:ladder[facing=south, waterlogged=false] |
4 changes: 4 additions & 0 deletions
4
data/boomber/functions/rope_ladder/ladder/place/waterlogged.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
execute if block ~ ~1 ~ minecraft:ladder[facing=east] run setblock ~ ~ ~ minecraft:ladder[facing=east, waterlogged=true] | ||
execute if block ~ ~1 ~ minecraft:ladder[facing=west] run setblock ~ ~ ~ minecraft:ladder[facing=west, waterlogged=true] | ||
execute if block ~ ~1 ~ minecraft:ladder[facing=north] run setblock ~ ~ ~ minecraft:ladder[facing=north, waterlogged=true] | ||
execute if block ~ ~1 ~ minecraft:ladder[facing=south] run setblock ~ ~ ~ minecraft:ladder[facing=south, waterlogged=true] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
execute positioned ~ ~-1 ~ if block ~ ~ ~ minecraft:ladder run function boomber:rope_ladder/ladder/remove | ||
|
||
execute if block ~ ~ ~ minecraft:ladder[waterlogged=false] run setblock ~ ~ ~ minecraft:air replace | ||
execute if block ~ ~ ~ minecraft:ladder[waterlogged=true] run setblock ~ ~ ~ minecraft:water replace | ||
|
||
execute at @s run summon item ~ ~ ~ {Item: {id: 'minecraft:ladder', Count: 1b}, PickupDelay: 0s} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
function boomber:rope_ladder/ladder/place | ||
|
||
scoreboard players add #bb.rl.iteration bb.variable 1 | ||
execute positioned ~ ~-1 ~ if block ~ ~ ~ #boomber:rope_ladder/air if score #bb.rl.iteration bb.variable <= #bb.rl.ladder bb.variable run function boomber:rope_ladder/ladder/rope |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
clear @s minecraft:ladder 1 | ||
|
||
scoreboard players remove #bb.rl.amount bb.variable 1 | ||
execute if score #bb.rl.amount bb.variable matches 1.. run function boomber:rope_ladder/ladder/take |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
execute as @a[tag=!global.ignore] at @s run function boomber:rope_ladder/player/main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
execute if score @s bb.rl.mine matches 1.. if predicate boomber:rope_ladder/is_sneaking run function boomber:rope_ladder/player/mine/run | ||
|
||
scoreboard players set @s bb.rl.mine 0 |
2 changes: 2 additions & 0 deletions
2
data/boomber/functions/rope_ladder/player/mine/found.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
kill @e[type=item, nbt={Item: {id: 'minecraft:ladder', Count: 1b}, Age: 0s}, distance=..0.8] | ||
execute align xyz positioned ~0.5 ~0.5 ~0.5 run function boomber:rope_ladder/ladder/remove |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
execute at @e[type=item, nbt={Item: {id: 'minecraft:ladder', Count: 1b}, Age: 0s}] if block ~ ~-1 ~ minecraft:ladder run function boomber:rope_ladder/player/mine/found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
scoreboard objectives add bb.variable dummy | ||
scoreboard objectives add bb.success dummy | ||
scoreboard objectives add bb.rl.mine minecraft.mined:minecraft.ladder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"condition": "minecraft:entity_properties", | ||
"entity": "this", | ||
"predicate": { | ||
"flags": { | ||
"is_sneaking": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"values": [ | ||
"minecraft:air", | ||
"minecraft:cave_air", | ||
"minecraft:water", | ||
"minecraft:grass", | ||
"minecraft:tall_grass", | ||
"minecraft:fern", | ||
"minecraft:large_fern" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"values": [ | ||
"boomber:rope_ladder/setup" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"values": [ | ||
"boomber:rope_ladder/main" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"display": { | ||
"title": "Installed Datapacks", | ||
"description": "", | ||
"icon": { | ||
"item": "minecraft:knowledge_book" | ||
}, | ||
"background": "minecraft:textures/block/black_concrete_powder.png", | ||
"show_toast": false, | ||
"announce_to_chat": false | ||
|
||
}, | ||
"criteria": { | ||
"trigger": { | ||
"trigger": "minecraft:tick" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"values": [ | ||
"#boomber:rope_ladder/load" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"values": [ | ||
"#boomber:rope_ladder/loop" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"pack": { | ||
"pack_format": 1, | ||
"description": "Long overdue Rope Ladder datapack" | ||
} | ||
} |