Inital commit
This commit is contained in:
commit
b5089257c5
1005 changed files with 23476 additions and 0 deletions
1
datapacks/xp-bottling/data/minecraft/tags/function/load.json
Executable file
1
datapacks/xp-bottling/data/minecraft/tags/function/load.json
Executable file
|
@ -0,0 +1 @@
|
|||
{"replace":false,"values":["xp_bottling:load"]}
|
38
datapacks/xp-bottling/data/vanillatweaks/advancement/root.json
Executable file
38
datapacks/xp-bottling/data/vanillatweaks/advancement/root.json
Executable file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"id": "minecraft:player_head",
|
||||
"components": {
|
||||
"minecraft:profile": {
|
||||
"properties": [
|
||||
{
|
||||
"name": "textures",
|
||||
"value": "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTg1YzMzNWM1MjVjZGFkY2Q4MmU4MDA4MzU1N2M2OTYzMGRmYjlhMWVkZjU5OTc0YzdmNjU4ZGI1MWEwYTFkOSJ9fX0="
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"title": "Vanilla Tweaks",
|
||||
"frame": "challenge",
|
||||
"description": [
|
||||
"",
|
||||
{
|
||||
"text": "All loaded Vanilla Tweaks data packs\n",
|
||||
"color": "gold"
|
||||
},
|
||||
{
|
||||
"text": "vanillatweaks.net",
|
||||
"color": "yellow"
|
||||
}
|
||||
],
|
||||
"background": "minecraft:textures/block/black_concrete.png",
|
||||
"show_toast": false,
|
||||
"announce_to_chat": false
|
||||
},
|
||||
"criteria": {
|
||||
"tick": {
|
||||
"trigger": "minecraft:tick"
|
||||
}
|
||||
}
|
||||
}
|
35
datapacks/xp-bottling/data/vanillatweaks/advancement/xp_management.json
Executable file
35
datapacks/xp-bottling/data/vanillatweaks/advancement/xp_management.json
Executable file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"id": "minecraft:experience_bottle"
|
||||
},
|
||||
"title": "XP Bottling ",
|
||||
"description": [
|
||||
"",
|
||||
{
|
||||
"text": "Right-click",
|
||||
"color": "green"
|
||||
},
|
||||
{
|
||||
"text": " an enchanting table with an empty bottle to fill it with some of your XP.\n",
|
||||
"color": "gold"
|
||||
},
|
||||
{
|
||||
"text": "Smelt",
|
||||
"color": "green"
|
||||
},
|
||||
{
|
||||
"text": " an XP bottle in a furnace to losslessly get your XP back.",
|
||||
"color": "gold"
|
||||
}
|
||||
],
|
||||
"show_toast": false,
|
||||
"announce_to_chat": false
|
||||
},
|
||||
"parent": "vanillatweaks:root",
|
||||
"criteria": {
|
||||
"tick": {
|
||||
"trigger": "minecraft:tick"
|
||||
}
|
||||
}
|
||||
}
|
5
datapacks/xp-bottling/data/vanillatweaks/tags/function/uninstall.json
Executable file
5
datapacks/xp-bottling/data/vanillatweaks/tags/function/uninstall.json
Executable file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"xp_bottling:uninstall"
|
||||
]
|
||||
}
|
35
datapacks/xp-bottling/data/xp_bottling/advancement/try_to_bottle_xp.json
Executable file
35
datapacks/xp-bottling/data/xp_bottling/advancement/try_to_bottle_xp.json
Executable file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"criteria": {
|
||||
"default_block_use": {
|
||||
"trigger": "minecraft:default_block_use",
|
||||
"conditions": {
|
||||
"location": [
|
||||
{
|
||||
"condition": "minecraft:block_state_property",
|
||||
"block": "minecraft:enchanting_table"
|
||||
},
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"slots": {
|
||||
"weapon.mainhand": {
|
||||
"items": "minecraft:glass_bottle"
|
||||
}
|
||||
},
|
||||
"type_specific": {
|
||||
"type": "player",
|
||||
"level": {
|
||||
"min": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"rewards": {
|
||||
"function": "xp_bottling:try_to_bottle_xp"
|
||||
}
|
||||
}
|
7
datapacks/xp-bottling/data/xp_bottling/function/bottle_xp.mcfunction
Executable file
7
datapacks/xp-bottling/data/xp_bottling/function/bottle_xp.mcfunction
Executable file
|
@ -0,0 +1,7 @@
|
|||
clear @s minecraft:glass_bottle 1
|
||||
give @s minecraft:experience_bottle
|
||||
xp add @s -12 points
|
||||
playsound minecraft:item.bottle.fill_dragonbreath player @a ~ ~ ~ 1 1.25
|
||||
scoreboard players set #steps craXPBot.dummy 50
|
||||
execute anchored eyes positioned ^ ^ ^ run function xp_bottling:raycast
|
||||
tag @s remove craXPBot.continue
|
|
@ -0,0 +1,3 @@
|
|||
summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["craXPBot.marker"],Duration:0,Radius:0.0f,WaitTime:0}
|
||||
execute align y if entity @e[type=minecraft:area_effect_cloud,tag=craXPBot.marker,distance=..0.75] run function xp_bottling:replace_enchanting_table
|
||||
kill @e[type=minecraft:area_effect_cloud,tag=craXPBot.marker]
|
2
datapacks/xp-bottling/data/xp_bottling/function/load.mcfunction
Executable file
2
datapacks/xp-bottling/data/xp_bottling/function/load.mcfunction
Executable file
|
@ -0,0 +1,2 @@
|
|||
scoreboard objectives add craXPBot.dummy dummy
|
||||
advancement revoke @a only xp_bottling:try_to_bottle_xp
|
3
datapacks/xp-bottling/data/xp_bottling/function/raycast.mcfunction
Executable file
3
datapacks/xp-bottling/data/xp_bottling/function/raycast.mcfunction
Executable file
|
@ -0,0 +1,3 @@
|
|||
scoreboard players remove #steps craXPBot.dummy 1
|
||||
execute if block ~ ~ ~ minecraft:enchanting_table run function xp_bottling:check_enchanting_table
|
||||
execute unless score #steps craXPBot.dummy matches 0 positioned ^ ^ ^0.1 run function xp_bottling:raycast
|
|
@ -0,0 +1,5 @@
|
|||
summon minecraft:item_frame ~ ~1000 ~ {Tags:["craXPBot.enchTable","craXPBot.new"],Fixed:1b,Invisible:1b,Item:{id:"minecraft:enchanting_table",components:{custom_data:{craXPBotData:{}}}}}
|
||||
data modify entity @e[type=minecraft:item_frame,tag=craXPBot.new,limit=1] Item.components."minecraft:custom_data".craXPBotData set from block ~ ~ ~ {}
|
||||
setblock ~ ~ ~ minecraft:snow[layers=6]
|
||||
scoreboard players set #steps craXPBot.dummy 0
|
||||
schedule function xp_bottling:restore_enchanting_tables 2t append
|
|
@ -0,0 +1,3 @@
|
|||
setblock ~ ~ ~ minecraft:enchanting_table
|
||||
data modify block ~ ~ ~ {} set from entity @s Item.components."minecaft:custom_data".craXPBotData
|
||||
kill @s
|
|
@ -0,0 +1 @@
|
|||
execute as @e[type=minecraft:item_frame,tag=craXPBot.enchTable] at @s positioned ~ ~-1000 ~ run function xp_bottling:restore_enchanting_table
|
|
@ -0,0 +1,5 @@
|
|||
advancement revoke @s only xp_bottling:try_to_bottle_xp
|
||||
tag @s add craXPBot.continue
|
||||
execute store result score #points craXPBot.dummy run xp query @s points
|
||||
execute if score #points craXPBot.dummy matches ..4 if entity @s[level=1] run tag @s remove craXPBot.continue
|
||||
execute if entity @s[tag=craXPBot.continue] run function xp_bottling:bottle_xp
|
1
datapacks/xp-bottling/data/xp_bottling/function/uninstall.mcfunction
Executable file
1
datapacks/xp-bottling/data/xp_bottling/function/uninstall.mcfunction
Executable file
|
@ -0,0 +1 @@
|
|||
scoreboard objectives remove craXPBot.dummy
|
11
datapacks/xp-bottling/data/xp_bottling/recipe/stored_xp.json
Executable file
11
datapacks/xp-bottling/data/xp_bottling/recipe/stored_xp.json
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"type": "minecraft:smelting",
|
||||
"ingredient": {
|
||||
"item": "minecraft:experience_bottle"
|
||||
},
|
||||
"result": {
|
||||
"id": "minecraft:glass_bottle"
|
||||
},
|
||||
"experience": 12,
|
||||
"cookingtime": 1
|
||||
}
|
9
datapacks/xp-bottling/overlay_57/data/xp_bottling/recipe/stored_xp.json
Executable file
9
datapacks/xp-bottling/overlay_57/data/xp_bottling/recipe/stored_xp.json
Executable file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"type": "minecraft:smelting",
|
||||
"ingredient": "minecraft:experience_bottle",
|
||||
"result": {
|
||||
"id": "minecraft:glass_bottle"
|
||||
},
|
||||
"experience": 12,
|
||||
"cookingtime": 1
|
||||
}
|
38
datapacks/xp-bottling/overlay_71/data/vanillatweaks/advancement/root.json
Executable file
38
datapacks/xp-bottling/overlay_71/data/vanillatweaks/advancement/root.json
Executable file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"id": "minecraft:player_head",
|
||||
"components": {
|
||||
"minecraft:profile": {
|
||||
"properties": [
|
||||
{
|
||||
"name": "textures",
|
||||
"value": "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTg1YzMzNWM1MjVjZGFkY2Q4MmU4MDA4MzU1N2M2OTYzMGRmYjlhMWVkZjU5OTc0YzdmNjU4ZGI1MWEwYTFkOSJ9fX0="
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"title": "Vanilla Tweaks",
|
||||
"frame": "challenge",
|
||||
"description": [
|
||||
"",
|
||||
{
|
||||
"text": "All loaded Vanilla Tweaks data packs\n",
|
||||
"color": "gold"
|
||||
},
|
||||
{
|
||||
"text": "vanillatweaks.net",
|
||||
"color": "yellow"
|
||||
}
|
||||
],
|
||||
"background": "minecraft:block/black_concrete",
|
||||
"show_toast": false,
|
||||
"announce_to_chat": false
|
||||
},
|
||||
"criteria": {
|
||||
"tick": {
|
||||
"trigger": "minecraft:tick"
|
||||
}
|
||||
}
|
||||
}
|
37
datapacks/xp-bottling/pack.mcmeta
Executable file
37
datapacks/xp-bottling/pack.mcmeta
Executable file
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
"pack": {
|
||||
"pack_format": 48,
|
||||
"supported_formats": {
|
||||
"min_inclusive": 48,
|
||||
"max_inclusive": 80
|
||||
},
|
||||
"description": [
|
||||
{
|
||||
"text": "XP Bottling",
|
||||
"color": "gold"
|
||||
},
|
||||
{
|
||||
"text": "\nvanillatweaks.net",
|
||||
"color": "yellow"
|
||||
}
|
||||
]
|
||||
},
|
||||
"overlays": {
|
||||
"entries": [
|
||||
{
|
||||
"formats": {
|
||||
"min_inclusive": 57,
|
||||
"max_inclusive": 2147483647
|
||||
},
|
||||
"directory": "overlay_57"
|
||||
},
|
||||
{
|
||||
"formats": {
|
||||
"min_inclusive": 71,
|
||||
"max_inclusive": 2147483647
|
||||
},
|
||||
"directory": "overlay_71"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
BIN
datapacks/xp-bottling/pack.png
Executable file
BIN
datapacks/xp-bottling/pack.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Loading…
Add table
Add a link
Reference in a new issue