Version 1.0.19b
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
farming for blockheads custom market additions
|
||||
authored by EnigmaQuip
|
||||
for use in ATM8
|
||||
|
||||
List Gen
|
||||
/markethelper
|
||||
OP permission required
|
||||
only should need to be run on mod changes,
|
||||
generates a new marketitems.json file
|
||||
*/
|
||||
|
||||
ServerEvents.commandRegistry(event => {
|
||||
const { commands: Commands, arguments: Arguments, builtinSuggestions: Suggestions } = event;
|
||||
event.register(
|
||||
Commands.literal("markethelper")
|
||||
.requires(source => source.getServer().isSingleplayer() || source.hasPermission(2))
|
||||
.executes((ctx) => Market(ctx.source))
|
||||
)
|
||||
})
|
||||
|
||||
function Market(source) {
|
||||
let saplings = {}
|
||||
let seeds = {}
|
||||
let flowers = {}
|
||||
let taggedSeeds = Ingredient.of('#forge:seeds').stacks
|
||||
taggedSeeds.forEach(seed => {
|
||||
let mod = seed.idLocation.namespace
|
||||
if (seeds[mod] == null) {
|
||||
seeds[mod] = []
|
||||
}
|
||||
seeds[mod].push(seed.id)
|
||||
})
|
||||
let taggedSaplings = Ingredient.of('#minecraft:saplings').stacks
|
||||
taggedSaplings.forEach(sapling => {
|
||||
let mod = sapling.idLocation.namespace
|
||||
if (saplings[mod] == null) {
|
||||
saplings[mod] = []
|
||||
}
|
||||
saplings[mod].push(sapling.id)
|
||||
})
|
||||
let taggedFlowers = Ingredient.of('#minecraft:flowers').stacks
|
||||
taggedFlowers.forEach(flower => {
|
||||
let mod = flower.idLocation.namespace
|
||||
if (mod == 'botania') {
|
||||
if (!flower.id.contains('mystical_flower')) {
|
||||
return
|
||||
}
|
||||
}
|
||||
if (flowers[mod] == null) {
|
||||
flowers[mod] = []
|
||||
}
|
||||
flowers[mod].push(flower.id)
|
||||
})
|
||||
JsonIO.write('kubejs/server_scripts/mods/farmingforblockheads/marketitems.json', { saplings: saplings, seeds: seeds, flowers: flowers })
|
||||
return 1
|
||||
}
|
||||
|
||||
const FFBAPI = Java.loadClass('net.blay09.mods.farmingforblockheads.api.FarmingForBlockheadsAPI')
|
||||
|
||||
// Datapack Gen
|
||||
ServerEvents.highPriorityData(event => {
|
||||
event.addJson('kubejs:farmingforblockheads_compat/atm.json', {
|
||||
groupOverrides: {
|
||||
"Croptopia Seeds": {
|
||||
enabled: false
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,421 @@
|
||||
{
|
||||
"saplings": {
|
||||
"byg": [
|
||||
"byg:maple_sapling",
|
||||
"byg:skyris_sapling",
|
||||
"byg:orchard_sapling",
|
||||
"byg:orange_birch_sapling",
|
||||
"byg:palm_sapling",
|
||||
"byg:lament_sapling",
|
||||
"byg:green_enchanted_sapling",
|
||||
"byg:ebony_sapling",
|
||||
"byg:aspen_sapling",
|
||||
"byg:holly_sapling",
|
||||
"byg:araucaria_sapling",
|
||||
"byg:red_oak_sapling",
|
||||
"byg:indigo_jacaranda_sapling",
|
||||
"byg:brown_oak_sapling",
|
||||
"byg:cypress_sapling",
|
||||
"byg:jacaranda_sapling",
|
||||
"byg:brown_birch_sapling",
|
||||
"byg:pine_sapling",
|
||||
"byg:yellow_spruce_sapling",
|
||||
"byg:withering_oak_sapling",
|
||||
"byg:orange_spruce_sapling",
|
||||
"byg:red_maple_sapling",
|
||||
"byg:fir_sapling",
|
||||
"byg:ether_sapling",
|
||||
"byg:rainbow_eucalyptus_sapling",
|
||||
"byg:white_mangrove_sapling",
|
||||
"byg:brown_zelkova_sapling",
|
||||
"byg:zelkova_sapling",
|
||||
"byg:joshua_sapling",
|
||||
"byg:redwood_sapling",
|
||||
"byg:nightshade_sapling",
|
||||
"byg:orange_oak_sapling",
|
||||
"byg:pink_cherry_sapling",
|
||||
"byg:white_cherry_sapling",
|
||||
"byg:red_spruce_sapling",
|
||||
"byg:willow_sapling",
|
||||
"byg:cika_sapling",
|
||||
"byg:witch_hazel_sapling",
|
||||
"byg:blue_spruce_sapling",
|
||||
"byg:silver_maple_sapling",
|
||||
"byg:mahogany_sapling",
|
||||
"byg:palo_verde_sapling",
|
||||
"byg:baobab_sapling",
|
||||
"byg:red_birch_sapling",
|
||||
"byg:yellow_birch_sapling",
|
||||
"byg:blue_enchanted_sapling"
|
||||
],
|
||||
"minecraft": [
|
||||
"minecraft:mangrove_propagule",
|
||||
"minecraft:flowering_azalea",
|
||||
"minecraft:birch_sapling",
|
||||
"minecraft:azalea",
|
||||
"minecraft:spruce_sapling",
|
||||
"minecraft:jungle_sapling",
|
||||
"minecraft:acacia_sapling",
|
||||
"minecraft:dark_oak_sapling",
|
||||
"minecraft:oak_sapling"
|
||||
],
|
||||
"croptopia": [
|
||||
"croptopia:orange_sapling",
|
||||
"croptopia:apricot_sapling",
|
||||
"croptopia:date_sapling",
|
||||
"croptopia:apple_sapling",
|
||||
"croptopia:plum_sapling",
|
||||
"croptopia:peach_sapling",
|
||||
"croptopia:coconut_sapling",
|
||||
"croptopia:persimmon_sapling",
|
||||
"croptopia:cashew_sapling",
|
||||
"croptopia:pear_sapling",
|
||||
"croptopia:nutmeg_sapling",
|
||||
"croptopia:nectarine_sapling",
|
||||
"croptopia:cherry_sapling",
|
||||
"croptopia:avocado_sapling",
|
||||
"croptopia:almond_sapling",
|
||||
"croptopia:lime_sapling",
|
||||
"croptopia:dragonfruit_sapling",
|
||||
"croptopia:cinnamon_sapling",
|
||||
"croptopia:kumquat_sapling",
|
||||
"croptopia:fig_sapling",
|
||||
"croptopia:lemon_sapling",
|
||||
"croptopia:pecan_sapling",
|
||||
"croptopia:starfruit_sapling",
|
||||
"croptopia:walnut_sapling",
|
||||
"croptopia:mango_sapling",
|
||||
"croptopia:banana_sapling",
|
||||
"croptopia:grapefruit_sapling"
|
||||
],
|
||||
"silentgear": [
|
||||
"silentgear:netherwood_sapling"
|
||||
],
|
||||
"blue_skies": [
|
||||
"blue_skies:starlit_sapling",
|
||||
"blue_skies:lunar_sapling",
|
||||
"blue_skies:maple_sapling",
|
||||
"blue_skies:crescent_fruit_sapling",
|
||||
"blue_skies:dusk_sapling",
|
||||
"blue_skies:frostbright_sapling",
|
||||
"blue_skies:cherry_sapling",
|
||||
"blue_skies:bluebright_sapling"
|
||||
],
|
||||
"ars_nouveau": [
|
||||
"ars_nouveau:blue_archwood_sapling",
|
||||
"ars_nouveau:green_archwood_sapling",
|
||||
"ars_nouveau:purple_archwood_sapling",
|
||||
"ars_nouveau:red_archwood_sapling"
|
||||
],
|
||||
"allthemodium": [
|
||||
"allthemodium:demonic_sapling",
|
||||
"allthemodium:ancient_sapling",
|
||||
"allthemodium:soul_sapling"
|
||||
],
|
||||
"quark": [
|
||||
"quark:blue_blossom_sapling",
|
||||
"quark:orange_blossom_sapling",
|
||||
"quark:red_blossom_sapling",
|
||||
"quark:lavender_blossom_sapling",
|
||||
"quark:pink_blossom_sapling",
|
||||
"quark:yellow_blossom_sapling",
|
||||
"quark:ancient_sapling"
|
||||
],
|
||||
"evilcraft": [
|
||||
"evilcraft:undead_sapling"
|
||||
],
|
||||
"hexerei": [
|
||||
"hexerei:willow_sapling",
|
||||
"hexerei:mahogany_sapling"
|
||||
],
|
||||
"twilightforest": [
|
||||
"twilightforest:transformation_sapling",
|
||||
"twilightforest:twilight_oak_sapling",
|
||||
"twilightforest:time_sapling",
|
||||
"twilightforest:darkwood_sapling",
|
||||
"twilightforest:sorting_sapling",
|
||||
"twilightforest:canopy_sapling",
|
||||
"twilightforest:rainbow_oak_sapling",
|
||||
"twilightforest:mining_sapling",
|
||||
"twilightforest:hollow_oak_sapling",
|
||||
"twilightforest:mangrove_sapling"
|
||||
],
|
||||
"occultism": [
|
||||
"occultism:otherworld_sapling_natural",
|
||||
"occultism:otherworld_sapling"
|
||||
],
|
||||
"integrateddynamics": [
|
||||
"integrateddynamics:menril_sapling"
|
||||
],
|
||||
"ars_elemental": [
|
||||
"ars_elemental:yellow_archwood_sapling"
|
||||
],
|
||||
"myrtrees": [
|
||||
"myrtrees:rubberwood_sapling"
|
||||
]
|
||||
},
|
||||
"seeds": {
|
||||
"croptopia": [
|
||||
"croptopia:artichoke_seed",
|
||||
"croptopia:cauliflower_seed",
|
||||
"croptopia:peanut_seed",
|
||||
"croptopia:greenbean_seed",
|
||||
"croptopia:pepper_seed",
|
||||
"croptopia:cranberry_seed",
|
||||
"croptopia:broccoli_seed",
|
||||
"croptopia:elderberry_seed",
|
||||
"croptopia:hops_seed",
|
||||
"croptopia:turmeric_seed",
|
||||
"croptopia:corn_seed",
|
||||
"croptopia:onion_seed",
|
||||
"croptopia:oat_seed",
|
||||
"croptopia:eggplant_seed",
|
||||
"croptopia:zucchini_seed",
|
||||
"croptopia:blackberry_seed",
|
||||
"croptopia:blueberry_seed",
|
||||
"croptopia:sweetpotato_seed",
|
||||
"croptopia:coffee_seed",
|
||||
"croptopia:strawberry_seed",
|
||||
"croptopia:saguaro_seed",
|
||||
"croptopia:cantaloupe_seed",
|
||||
"croptopia:kiwi_seed",
|
||||
"croptopia:tea_seed",
|
||||
"croptopia:cucumber_seed",
|
||||
"croptopia:ginger_seed",
|
||||
"croptopia:vanilla_seeds",
|
||||
"croptopia:bellpepper_seed",
|
||||
"croptopia:celery_seed",
|
||||
"croptopia:barley_seed",
|
||||
"croptopia:asparagus_seed",
|
||||
"croptopia:chile_pepper_seed",
|
||||
"croptopia:mustard_seed",
|
||||
"croptopia:soybean_seed",
|
||||
"croptopia:pineapple_seed",
|
||||
"croptopia:yam_seed",
|
||||
"croptopia:olive_seed",
|
||||
"croptopia:spinach_seed",
|
||||
"croptopia:blackbean_seed",
|
||||
"croptopia:rice_seed",
|
||||
"croptopia:currant_seed",
|
||||
"croptopia:greenonion_seed",
|
||||
"croptopia:rutabaga_seed",
|
||||
"croptopia:tomato_seed",
|
||||
"croptopia:raspberry_seed",
|
||||
"croptopia:garlic_seed",
|
||||
"croptopia:grape_seed",
|
||||
"croptopia:tomatillo_seed",
|
||||
"croptopia:basil_seed",
|
||||
"croptopia:honeydew_seed",
|
||||
"croptopia:rhubarb_seed",
|
||||
"croptopia:cabbage_seed",
|
||||
"croptopia:squash_seed",
|
||||
"croptopia:radish_seed",
|
||||
"croptopia:lettuce_seed",
|
||||
"croptopia:kale_seed",
|
||||
"croptopia:turnip_seed",
|
||||
"croptopia:leek_seed"
|
||||
],
|
||||
"thermal": [
|
||||
"thermal:eggplant_seeds",
|
||||
"thermal:sadiroot_seeds",
|
||||
"thermal:bell_pepper_seeds",
|
||||
"thermal:amaranth_seeds",
|
||||
"thermal:flax_seeds",
|
||||
"thermal:strawberry_seeds",
|
||||
"thermal:spinach_seeds",
|
||||
"thermal:tea_seeds",
|
||||
"thermal:frost_melon_seeds",
|
||||
"thermal:radish_seeds",
|
||||
"thermal:barley_seeds",
|
||||
"thermal:corn_seeds",
|
||||
"thermal:green_bean_seeds",
|
||||
"thermal:rice_seeds",
|
||||
"thermal:onion_seeds",
|
||||
"thermal:peanut_seeds",
|
||||
"thermal:tomato_seeds",
|
||||
"thermal:hops_seeds",
|
||||
"thermal:coffee_seeds"
|
||||
],
|
||||
"immersiveengineering": [
|
||||
"immersiveengineering:seed"
|
||||
],
|
||||
"minecraft": [
|
||||
"minecraft:beetroot_seeds",
|
||||
"minecraft:pumpkin_seeds",
|
||||
"minecraft:melon_seeds",
|
||||
"minecraft:wheat_seeds"
|
||||
],
|
||||
"ars_nouveau": [
|
||||
"ars_nouveau:magebloom_crop"
|
||||
],
|
||||
"delightful": [
|
||||
"delightful:salmonberry_pips"
|
||||
],
|
||||
"supplementaries": [
|
||||
"supplementaries:flax_seeds"
|
||||
],
|
||||
"silentgear": [
|
||||
"silentgear:fluffy_seeds",
|
||||
"silentgear:flax_seeds"
|
||||
],
|
||||
"farmersdelight": [
|
||||
"farmersdelight:tomato_seeds",
|
||||
"farmersdelight:cabbage_seeds",
|
||||
"farmersdelight:rice"
|
||||
],
|
||||
"blue_skies": [
|
||||
"blue_skies:pine_fruit_seeds",
|
||||
"blue_skies:winter_leaf_seeds",
|
||||
"blue_skies:fiery_bean_seeds",
|
||||
"blue_skies:scalefruit_seeds"
|
||||
],
|
||||
"occultism": [
|
||||
"occultism:datura_seeds"
|
||||
],
|
||||
"hexerei": [
|
||||
"hexerei:sage_seed"
|
||||
]
|
||||
},
|
||||
"flowers": {
|
||||
"minecraft": [
|
||||
"minecraft:lily_of_the_valley",
|
||||
"minecraft:red_tulip",
|
||||
"minecraft:cornflower",
|
||||
"minecraft:pink_tulip",
|
||||
"minecraft:white_tulip",
|
||||
"minecraft:flowering_azalea_leaves",
|
||||
"minecraft:sunflower",
|
||||
"minecraft:dandelion",
|
||||
"minecraft:oxeye_daisy",
|
||||
"minecraft:mangrove_propagule",
|
||||
"minecraft:flowering_azalea",
|
||||
"minecraft:allium",
|
||||
"minecraft:peony",
|
||||
"minecraft:poppy",
|
||||
"minecraft:orange_tulip",
|
||||
"minecraft:wither_rose",
|
||||
"minecraft:blue_orchid",
|
||||
"minecraft:azure_bluet",
|
||||
"minecraft:rose_bush",
|
||||
"minecraft:lilac"
|
||||
],
|
||||
"botania": [
|
||||
"botania:lime_mystical_flower",
|
||||
"botania:yellow_mystical_flower",
|
||||
"botania:black_mystical_flower",
|
||||
"botania:white_mystical_flower",
|
||||
"botania:green_mystical_flower",
|
||||
"botania:brown_mystical_flower",
|
||||
"botania:light_gray_mystical_flower",
|
||||
"botania:pink_mystical_flower",
|
||||
"botania:red_mystical_flower",
|
||||
"botania:purple_mystical_flower",
|
||||
"botania:magenta_mystical_flower",
|
||||
"botania:orange_mystical_flower",
|
||||
"botania:blue_mystical_flower",
|
||||
"botania:gray_mystical_flower",
|
||||
"botania:cyan_mystical_flower",
|
||||
"botania:light_blue_mystical_flower"
|
||||
],
|
||||
"byg": [
|
||||
"byg:amaranth",
|
||||
"byg:violet_leather_flower",
|
||||
"byg:allium_flower_bush",
|
||||
"byg:green_tulip",
|
||||
"byg:orange_daisy",
|
||||
"byg:japanese_orchid",
|
||||
"byg:silver_vase_flower",
|
||||
"byg:flowering_palo_verde_leaves",
|
||||
"byg:torch_ginger",
|
||||
"byg:thereal_bellflower",
|
||||
"byg:flowering_nightshade_leaves",
|
||||
"byg:cyan_rose",
|
||||
"byg:golden_spined_cactus",
|
||||
"byg:protea_flower",
|
||||
"byg:guzmania",
|
||||
"byg:hydrangea_bush",
|
||||
"byg:black_rose",
|
||||
"byg:daffodil",
|
||||
"byg:peach_leather_flower",
|
||||
"byg:purple_tulip",
|
||||
"byg:cyan_amaranth",
|
||||
"byg:prairie_grass",
|
||||
"byg:blue_rose_bush",
|
||||
"byg:angelica",
|
||||
"byg:orange_amaranth",
|
||||
"byg:pink_anemone",
|
||||
"byg:yellow_daffodil",
|
||||
"byg:fairy_slipper",
|
||||
"byg:yellow_tulip",
|
||||
"byg:winter_rose",
|
||||
"byg:lollipop_flower",
|
||||
"byg:magenta_amaranth",
|
||||
"byg:purple_sage",
|
||||
"byg:winter_cyclamen",
|
||||
"byg:osiria_rose",
|
||||
"byg:white_anemone",
|
||||
"byg:delphinium",
|
||||
"byg:pink_daffodil",
|
||||
"byg:cyan_tulip",
|
||||
"byg:lazarus_bellflower",
|
||||
"byg:magenta_tulip",
|
||||
"byg:flowering_jacaranda_bush",
|
||||
"byg:white_sage",
|
||||
"byg:tall_pink_allium",
|
||||
"byg:california_poppy",
|
||||
"byg:iris",
|
||||
"byg:incan_lily",
|
||||
"byg:blue_sage",
|
||||
"byg:flowering_jacaranda_leaves",
|
||||
"byg:bistort",
|
||||
"byg:flowering_indigo_jacaranda_leaves",
|
||||
"byg:alpine_bellflower",
|
||||
"byg:hydrangea_hedge",
|
||||
"byg:pink_allium",
|
||||
"byg:tall_allium",
|
||||
"byg:flowering_indigo_jacaranda_bush",
|
||||
"byg:kovan_flower",
|
||||
"byg:purple_amaranth",
|
||||
"byg:rose",
|
||||
"byg:foxglove",
|
||||
"byg:begonia",
|
||||
"byg:pink_allium_flower_bush",
|
||||
"byg:snowdrops",
|
||||
"byg:richea",
|
||||
"byg:firecracker_flower_bush",
|
||||
"byg:crocus",
|
||||
"byg:winter_scilla",
|
||||
"byg:flowering_orchard_leaves"
|
||||
],
|
||||
"blue_skies": [
|
||||
"blue_skies:chillweed",
|
||||
"blue_skies:briskbloom",
|
||||
"blue_skies:polar_posy",
|
||||
"blue_skies:moonlit_bloom",
|
||||
"blue_skies:crystal_flower",
|
||||
"blue_skies:muckweed",
|
||||
"blue_skies:blush_blossom",
|
||||
"blue_skies:lucentroot",
|
||||
"blue_skies:snowbloom",
|
||||
"blue_skies:midday_bayhop",
|
||||
"blue_skies:frose",
|
||||
"blue_skies:flare_floret",
|
||||
"blue_skies:blaze_bud",
|
||||
"blue_skies:nightcress",
|
||||
"blue_skies:camellia",
|
||||
"blue_skies:brittlebush"
|
||||
],
|
||||
"farmersdelight": [
|
||||
"farmersdelight:wild_tomatoes",
|
||||
"farmersdelight:wild_potatoes",
|
||||
"farmersdelight:wild_rice",
|
||||
"farmersdelight:wild_onions",
|
||||
"farmersdelight:wild_beetroots",
|
||||
"farmersdelight:wild_cabbages",
|
||||
"farmersdelight:wild_carrots"
|
||||
],
|
||||
"supplementaries": [
|
||||
"supplementaries:wild_flax"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user