-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Craftable Sculk Sensor #42
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -22,6 +22,4 @@ bin/ | |
local.properties | ||
|
||
# fabric | ||
|
||
run/ | ||
logs/latest.log |
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
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
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
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
Binary file added
BIN
+10.9 KB
...ft-addons/datapacks/RedPack - Craftable Sculk Sensor/RedPack - Craftable Sculk Sensor.zip
Binary file not shown.
18 changes: 18 additions & 0 deletions
18
...raft-addons/datapacks/RedPack - Craftable Sculk Sensor/data/global/advancements/root.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,18 @@ | ||
{ | ||
"display": { | ||
"title": "Installed Datapacks", | ||
"description": "", | ||
"icon": { | ||
"item": "minecraft:knowledge_book" | ||
}, | ||
"background": "minecraft:textures/block/gray_concrete.png", | ||
"show_toast": false, | ||
"announce_to_chat": false | ||
|
||
}, | ||
"criteria": { | ||
"trigger": { | ||
"trigger": "minecraft:tick" | ||
} | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...addons/datapacks/RedPack - Craftable Sculk Sensor/data/minecraft/tags/functions/load.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,5 @@ | ||
{ | ||
"values": [ | ||
"#redpack:craftable_sculk_sensor/load" | ||
] | ||
} |
19 changes: 19 additions & 0 deletions
19
...Sculk Sensor/data/redpack/advancements/craftable_sculk_sensor/craftable_sculk_sensor.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,19 @@ | ||
{ | ||
"display": { | ||
"title": "Craftable Sculk Sensor v0.1.0", | ||
"description": [{ | ||
"text": "Sculk Sensor Crafting by BisUmTo, Gnottero & DukeEdivad05" | ||
}], | ||
"icon": { | ||
"item": "minecraft:sculk_sensor" | ||
}, | ||
"announce_to_chat": false, | ||
"show_toast": false | ||
}, | ||
"parent": "redpack:crafting", | ||
"criteria": { | ||
"trigger": { | ||
"trigger": "minecraft:tick" | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...e Sculk Sensor/data/redpack/advancements/craftable_sculk_sensor/recipes/sculk_sensor.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,46 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"rewards": { | ||
"recipes": [ | ||
"redpack:craftable_sculk_sensor/sculk_sensor" | ||
] | ||
}, | ||
"criteria": { | ||
"has_the_recipe": { | ||
"trigger": "minecraft:recipe_unlocked", | ||
"conditions": { | ||
"recipe": "redpack:craftable_sculk_sensor/sculk_sensor" | ||
} | ||
}, | ||
"has_item_0": { | ||
"trigger": "minecraft:inventory_changed", | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"item": "minecraft:observer" | ||
} | ||
] | ||
} | ||
}, | ||
"has_item_1": { | ||
"trigger": "minecraft:inventory_changed", | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"item": "minecraft:ender_pearl" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_item_0", | ||
"has_the_recipe" | ||
], | ||
[ | ||
"has_item_1", | ||
"has_the_recipe" | ||
] | ||
] | ||
} |
19 changes: 19 additions & 0 deletions
19
...addons/datapacks/RedPack - Craftable Sculk Sensor/data/redpack/advancements/crafting.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,19 @@ | ||
{ | ||
"display": { | ||
"title": "More Craftings", | ||
"description": [ | ||
{"text": ""} | ||
], | ||
"icon": { | ||
"item": "minecraft:crafting_table" | ||
}, | ||
"announce_to_chat": false, | ||
"show_toast": false | ||
}, | ||
"parent": "redpack:redpack", | ||
"criteria": { | ||
"trigger": { | ||
"trigger": "minecraft:tick" | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...-addons/datapacks/RedPack - Craftable Sculk Sensor/data/redpack/advancements/redpack.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,18 @@ | ||
{ | ||
"display": { | ||
"title": "§4§lRed§c§lPack§r - BisUmTo & Gnottero", | ||
"description": "", | ||
"icon": { | ||
"item": "minecraft:player_head", | ||
"nbt": "{display:{Name:'\"Redstone Block\"'},SkullOwner:{Id:[I;1283,1283,1283,1],Properties:{textures:[{Value:\"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjBjMDU1OTdmYjI3OWZkYmE5OTBlM2QzZTM0NGNmZTNhMmRhMTA2MDA0ZGNiMzk0MjY3YTlhZjlmNmQ0OWU5OSJ9fX0=\"}]}}}" | ||
}, | ||
"show_toast": false, | ||
"announce_to_chat": false | ||
}, | ||
"parent": "global:root", | ||
"criteria": { | ||
"trigger": { | ||
"trigger": "minecraft:tick" | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...ack - Craftable Sculk Sensor/data/redpack/functions/sculk_sensor_crafting/main.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 @@ | ||
# Executing all the cores functions |
18 changes: 18 additions & 0 deletions
18
...ck - Craftable Sculk Sensor/data/redpack/functions/sculk_sensor_crafting/setup.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,18 @@ | ||
# Creating all the scoreboards that are needed by the datapack | ||
|
||
# Adding the pack name and version to the redpack storage | ||
data remove storage redpack:config versions[{id:128357}] | ||
data modify storage redpack:config versions append value {"id":128357,"name":"RedPack - Craftable Sculk Sensor","version":"0.1.0"} | ||
|
||
# Initializing the scoreboards | ||
scoreboard objectives add gb.configs dummy | ||
|
||
# Getting the version of the player and sending an error message if it is outdated | ||
execute store result score $gb.game_version gb.configs run data get entity @a[limit=1] DataVersion | ||
execute if score $gb.game_version gb.configs matches ..2683 run tellraw @a[tag=!global.ignore.gui] {"text":"[Craftable Sculk Sensor (RedPack)]> This datapack is not compatible with all the versions before 20w49a!\n","color":"red"} | ||
|
||
# Checking if the server uses a different jar from the vanilla one | ||
execute if score $gb.check_jar gb.configs matches 0 store success score $gb.check_jar gb.configs run data get entity @a[limit=1] "Spigot.ticksLived" | ||
execute if score $gb.check_jar gb.configs matches 0 store success score $gb.check_jar gb.configs run data get entity @a[limit=1] "Bukkit.updateLevel" | ||
execute if score $gb.check_jar gb.configs matches 0 store success score $gb.check_jar gb.configs run data get entity @a[limit=1] "Paper.SpawnReason" | ||
execute if score $gb.check_jar gb.configs matches 1 run tellraw @a[tag=!global.ignore.gui] {"text":"Compatibility in non-vanilla servers is not guaranteed!","color":"red"} |
10 changes: 10 additions & 0 deletions
10
... Craftable Sculk Sensor/data/redpack/functions/sculk_sensor_crafting/uninstall.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 @@ | ||
# Removing all the scoreboards and disabling the datapack | ||
|
||
# Removing the scoreboards | ||
scoreboard objectives remove gb.configs | ||
|
||
# Removing the storage | ||
data remove storage redpack:config versions[{id:128357}] | ||
|
||
# Disabling the datapack | ||
datapack disable "file/RedPack - Craftable Sculk Sensor" |
19 changes: 19 additions & 0 deletions
19
...-addons/datapacks/RedPack - Craftable Sculk Sensor/data/redpack/recipes/sculk_sensor.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,19 @@ | ||
{ | ||
"type":"crafting_shaped", | ||
"group": "sculk", | ||
"pattern": [ | ||
" # ", | ||
"III" | ||
], | ||
"key": { | ||
"#" :{ | ||
"item": "minecraft:observer" | ||
}, | ||
"I" :{ | ||
"item": "minecraft:ender_pearl" | ||
} | ||
}, | ||
"result": { | ||
"item": "minecraft:sculk_sensor" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...Pack - Craftable Sculk Sensor/data/redpack/tags/functions/sculk_sensor_crafting/load.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,5 @@ | ||
{ | ||
"values": [ | ||
"redpack:craftable_sculk_sensor/setup" | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
...Pack - Craftable Sculk Sensor/data/redpack/tags/functions/sculk_sensor_crafting/loop.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,5 @@ | ||
{ | ||
"values": [ | ||
"redpack:craftable_sculk_sensor/main" | ||
] | ||
} |
12 changes: 12 additions & 0 deletions
12
...rces/assets/carpet-redcraft-addons/datapacks/RedPack - Craftable Sculk Sensor/pack.mcmeta
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,12 @@ | ||
{ | ||
"pack": { | ||
"pack_format": 7, | ||
"description": "RedPack by BisUmTo, Gnottero & DukeEdivad05 - Craftable Sculk Sensor v0.1.0" | ||
}, | ||
"redpack": { | ||
"id": "128357", | ||
"video": "KVIxcL8rNC8" | ||
"image": "https://img.youtube.com/vi/0GiWWcVG6x8/maxresdefault.jpg", | ||
DukeEdivad05 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"group": "more_craftings" | ||
} | ||
} |
Binary file added
BIN
+19.7 KB
...sets/carpet-redcraft-addons/datapacks/RedPack - Craftable Sculk Sensor/pack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastica scelta delle lettere 😂😂😂
I
come ender_peal#
come observer