From ed4da9f63021cd624941247c2ea36fcfc27b464a Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Mon, 27 Jun 2022 20:11:06 -0500 Subject: [PATCH] Loot table stuffs, add backups --- config/simplebackups-common.toml | 18 +++++++++++++ .../minecraft/loot_tables/blocks/chest.json | 26 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 config/simplebackups-common.toml create mode 100644 kubejs/data/minecraft/loot_tables/blocks/chest.json diff --git a/config/simplebackups-common.toml b/config/simplebackups-common.toml new file mode 100644 index 0000000..132da69 --- /dev/null +++ b/config/simplebackups-common.toml @@ -0,0 +1,18 @@ +#The max amount of backup files to keep. +#Range: 1 ~ 32767 +backupsToKeep = 5 +#The time between two backups in minutes +#5 = each 5 minutes +#60 = each hour +#1440 = each day +#Range: 1 ~ 32767 +timer = 15 +#Should message be sent when backup is in the making? +sendMessages = true +#The max size of storage the backup folder. If it takes more storage, old files will be deleted. +#Needs to be written as +#Valid storage types: B, KB, MB, GB, TB +maxDiskSize = "15 GB" +#Used to define the output path. +outputPath = "backups" + diff --git a/kubejs/data/minecraft/loot_tables/blocks/chest.json b/kubejs/data/minecraft/loot_tables/blocks/chest.json new file mode 100644 index 0000000..302986a --- /dev/null +++ b/kubejs/data/minecraft/loot_tables/blocks/chest.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:copy_name", + "source": "block_entity" + } + ], + "name": "expandedstorage:wood_chest" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +}