diff --git a/DuneRealmsGUI/build.gradle.kts b/DuneRealmsGUI/build.gradle.kts index 0cdbef67..63f78aea 100644 --- a/DuneRealmsGUI/build.gradle.kts +++ b/DuneRealmsGUI/build.gradle.kts @@ -18,6 +18,7 @@ tasks.jar { archiveFileName.set("DunerealmsGUI.jar") } sourceSets.main { java.srcDirs("../citizens-common/src/main/java", "../pack-session-common/src/main/java") } tasks.processResources { from(rootProject.file("../network/content-assets/cookbook/spice-crafting.json")) + from(rootProject.file("../network/content-assets/cookbook/regional-cooking.json")) } val mcguiRuntime = providers.gradleProperty("mcguiRuntime") diff --git a/DuneRealmsGUI/executableitems/regional-cooking/bacon.yml b/DuneRealmsGUI/executableitems/regional-cooking/bacon.yml new file mode 100644 index 00000000..7ea48e88 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/bacon.yml @@ -0,0 +1,27 @@ +{ + "name": "&fBacon", + "material": "COOKED_PORKCHOP", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/bacon" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/baguette.yml b/DuneRealmsGUI/executableitems/regional-cooking/baguette.yml new file mode 100644 index 00000000..5a4cefec --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/baguette.yml @@ -0,0 +1,27 @@ +{ + "name": "&fBaguette", + "material": "BREAD", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/baguette" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/baking_dough.yml b/DuneRealmsGUI/executableitems/regional-cooking/baking_dough.yml new file mode 100644 index 00000000..00c829c5 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/baking_dough.yml @@ -0,0 +1,27 @@ +{ + "name": "&fBaking Dough", + "material": "CLAY_BALL", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/baking_dough" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/beef_burger.yml b/DuneRealmsGUI/executableitems/regional-cooking/beef_burger.yml new file mode 100644 index 00000000..4d2d1d8d --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/beef_burger.yml @@ -0,0 +1,27 @@ +{ + "name": "&fBeef Burger", + "material": "COOKED_BEEF", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/beef_burger" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/beef_mince.yml b/DuneRealmsGUI/executableitems/regional-cooking/beef_mince.yml new file mode 100644 index 00000000..67b6cc1b --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/beef_mince.yml @@ -0,0 +1,27 @@ +{ + "name": "&fBeef Mince", + "material": "BEEF", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/beef_mince" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/beef_stock.yml b/DuneRealmsGUI/executableitems/regional-cooking/beef_stock.yml new file mode 100644 index 00000000..b21b02ae --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/beef_stock.yml @@ -0,0 +1,27 @@ +{ + "name": "&fBeef Stock", + "material": "MUSHROOM_STEW", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/beef_stock" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/berry_cordial.yml b/DuneRealmsGUI/executableitems/regional-cooking/berry_cordial.yml new file mode 100644 index 00000000..53e24ab4 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/berry_cordial.yml @@ -0,0 +1,27 @@ +{ + "name": "&fBerry Cordial", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/berry_cordial" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/berry_tart.yml b/DuneRealmsGUI/executableitems/regional-cooking/berry_tart.yml new file mode 100644 index 00000000..3c8531c5 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/berry_tart.yml @@ -0,0 +1,27 @@ +{ + "name": "&fBerry Tart", + "material": "PUMPKIN_PIE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/berry_tart" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/berry_tart_mix.yml b/DuneRealmsGUI/executableitems/regional-cooking/berry_tart_mix.yml new file mode 100644 index 00000000..29554828 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/berry_tart_mix.yml @@ -0,0 +1,27 @@ +{ + "name": "&fBerry Tart Mix", + "material": "CLAY_BALL", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/berry_tart_mix" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/berry_tea.yml b/DuneRealmsGUI/executableitems/regional-cooking/berry_tea.yml new file mode 100644 index 00000000..ddba2e28 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/berry_tea.yml @@ -0,0 +1,27 @@ +{ + "name": "&fBerry Tea", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/berry_tea" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/brown_mushroom_broth.yml b/DuneRealmsGUI/executableitems/regional-cooking/brown_mushroom_broth.yml new file mode 100644 index 00000000..4e99779a --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/brown_mushroom_broth.yml @@ -0,0 +1,27 @@ +{ + "name": "&fBrown Mushroom Broth", + "material": "MUSHROOM_STEW", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/brown_mushroom_broth" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/burger_bun.yml b/DuneRealmsGUI/executableitems/regional-cooking/burger_bun.yml new file mode 100644 index 00000000..9b62fe43 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/burger_bun.yml @@ -0,0 +1,27 @@ +{ + "name": "&fBurger Bun", + "material": "BREAD", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/burger_bun" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/butter.yml b/DuneRealmsGUI/executableitems/regional-cooking/butter.yml new file mode 100644 index 00000000..b249abf9 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/butter.yml @@ -0,0 +1,27 @@ +{ + "name": "&fButter", + "material": "HONEYCOMB", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/butter" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/butter_croissant.yml b/DuneRealmsGUI/executableitems/regional-cooking/butter_croissant.yml new file mode 100644 index 00000000..6a916ac8 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/butter_croissant.yml @@ -0,0 +1,27 @@ +{ + "name": "&fButter Croissant", + "material": "BREAD", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/butter_croissant" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/caladan_berry_wine.yml b/DuneRealmsGUI/executableitems/regional-cooking/caladan_berry_wine.yml new file mode 100644 index 00000000..545e0861 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/caladan_berry_wine.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCaladan Berry Wine", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/caladan_berry_wine" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/caladan_garden_salad.yml b/DuneRealmsGUI/executableitems/regional-cooking/caladan_garden_salad.yml new file mode 100644 index 00000000..42bf7d9f --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/caladan_garden_salad.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCaladan Garden Salad", + "material": "MUSHROOM_STEW", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/caladan_garden_salad" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/caramel_praline.yml b/DuneRealmsGUI/executableitems/regional-cooking/caramel_praline.yml new file mode 100644 index 00000000..3bd89421 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/caramel_praline.yml @@ -0,0 +1,27 @@ +{ + "name": "&fSea-salt Caramel Praline", + "material": "COOKIE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/caramel_praline" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/carrot_cake.yml b/DuneRealmsGUI/executableitems/regional-cooking/carrot_cake.yml new file mode 100644 index 00000000..ddc3f41e --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/carrot_cake.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCarrot Cake", + "material": "PUMPKIN_PIE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/carrot_cake" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/carrot_cake_mix.yml b/DuneRealmsGUI/executableitems/regional-cooking/carrot_cake_mix.yml new file mode 100644 index 00000000..1e109b29 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/carrot_cake_mix.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCarrot Cake Mix", + "material": "CLAY_BALL", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/carrot_cake_mix" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/cheese.yml b/DuneRealmsGUI/executableitems/regional-cooking/cheese.yml new file mode 100644 index 00000000..bbc41825 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/cheese.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCheese", + "material": "HONEYCOMB", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/cheese" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/chocolate_cookie_mix.yml b/DuneRealmsGUI/executableitems/regional-cooking/chocolate_cookie_mix.yml new file mode 100644 index 00000000..60dd813f --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/chocolate_cookie_mix.yml @@ -0,0 +1,27 @@ +{ + "name": "&fChocolate Cookie Dough", + "material": "CLAY_BALL", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/chocolate_cookie_mix" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/chocolate_cookies.yml b/DuneRealmsGUI/executableitems/regional-cooking/chocolate_cookies.yml new file mode 100644 index 00000000..9d7fdcc1 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/chocolate_cookies.yml @@ -0,0 +1,27 @@ +{ + "name": "&fChocolate Cookies", + "material": "COOKIE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/chocolate_cookies" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/chocolate_liqueur.yml b/DuneRealmsGUI/executableitems/regional-cooking/chocolate_liqueur.yml new file mode 100644 index 00000000..70c30134 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/chocolate_liqueur.yml @@ -0,0 +1,27 @@ +{ + "name": "&fChocolate Liqueur", + "material": "HONEY_BOTTLE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/chocolate_liqueur" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/chocolate_milk.yml b/DuneRealmsGUI/executableitems/regional-cooking/chocolate_milk.yml new file mode 100644 index 00000000..25acc6e8 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/chocolate_milk.yml @@ -0,0 +1,27 @@ +{ + "name": "&fChocolate Milk", + "material": "HONEY_BOTTLE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/chocolate_milk" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/chukka_shawarma.yml b/DuneRealmsGUI/executableitems/regional-cooking/chukka_shawarma.yml new file mode 100644 index 00000000..e2f2befb --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/chukka_shawarma.yml @@ -0,0 +1,27 @@ +{ + "name": "&fChukka Shawarma", + "material": "COOKED_CHICKEN", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/chukka_shawarma" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/cocoa_butter.yml b/DuneRealmsGUI/executableitems/regional-cooking/cocoa_butter.yml new file mode 100644 index 00000000..7e24f573 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/cocoa_butter.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCocoa Butter", + "material": "HONEYCOMB", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/cocoa_butter" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/cocoa_powder.yml b/DuneRealmsGUI/executableitems/regional-cooking/cocoa_powder.yml new file mode 100644 index 00000000..741ad963 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/cocoa_powder.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCocoa Powder", + "material": "COCOA_BEANS", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/cocoa_powder" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/cocoa_truffle.yml b/DuneRealmsGUI/executableitems/regional-cooking/cocoa_truffle.yml new file mode 100644 index 00000000..04cecd22 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/cocoa_truffle.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCocoa Truffle", + "material": "COOKIE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/cocoa_truffle" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/cocoa_vodka.yml b/DuneRealmsGUI/executableitems/regional-cooking/cocoa_vodka.yml new file mode 100644 index 00000000..3948fb3e --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/cocoa_vodka.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCocoa Vodka", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/cocoa_vodka" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/corrupted_biomass.yml b/DuneRealmsGUI/executableitems/regional-cooking/corrupted_biomass.yml new file mode 100644 index 00000000..4332bae4 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/corrupted_biomass.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCorrupted Biomass Mash", + "material": "ROTTEN_FLESH", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/corrupted_biomass" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/cream.yml b/DuneRealmsGUI/executableitems/regional-cooking/cream.yml new file mode 100644 index 00000000..4a96a1f0 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/cream.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCream", + "material": "HONEY_BOTTLE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/cream" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/cream_liqueur.yml b/DuneRealmsGUI/executableitems/regional-cooking/cream_liqueur.yml new file mode 100644 index 00000000..77e66071 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/cream_liqueur.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCream Liqueur", + "material": "HONEY_BOTTLE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/cream_liqueur" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/cultured_milk.yml b/DuneRealmsGUI/executableitems/regional-cooking/cultured_milk.yml new file mode 100644 index 00000000..f7818bc8 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/cultured_milk.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCultured Milk", + "material": "HONEY_BOTTLE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/cultured_milk" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/cured_ham.yml b/DuneRealmsGUI/executableitems/regional-cooking/cured_ham.yml new file mode 100644 index 00000000..8eb0c9fd --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/cured_ham.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCured Ham", + "material": "COOKED_PORKCHOP", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/cured_ham" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/cured_pork_strips.yml b/DuneRealmsGUI/executableitems/regional-cooking/cured_pork_strips.yml new file mode 100644 index 00000000..f62c5478 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/cured_pork_strips.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCured Pork Strips", + "material": "PORKCHOP", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/cured_pork_strips" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/dark_chocolate.yml b/DuneRealmsGUI/executableitems/regional-cooking/dark_chocolate.yml new file mode 100644 index 00000000..6fec2545 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/dark_chocolate.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCaladan Dark Chocolate", + "material": "COOKIE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/dark_chocolate" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/factory_ration_brick.yml b/DuneRealmsGUI/executableitems/regional-cooking/factory_ration_brick.yml new file mode 100644 index 00000000..19fadf46 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/factory_ration_brick.yml @@ -0,0 +1,27 @@ +{ + "name": "&fFactory Ration Brick", + "material": "COOKED_BEEF", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/factory_ration_brick" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/flour.yml b/DuneRealmsGUI/executableitems/regional-cooking/flour.yml new file mode 100644 index 00000000..2ff646f3 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/flour.yml @@ -0,0 +1,27 @@ +{ + "name": "&fFlour", + "material": "SUGAR", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/flour" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/furnace_roasted_hoglin.yml b/DuneRealmsGUI/executableitems/regional-cooking/furnace_roasted_hoglin.yml new file mode 100644 index 00000000..202da229 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/furnace_roasted_hoglin.yml @@ -0,0 +1,27 @@ +{ + "name": "&fFurnace-roasted Hoglin", + "material": "COOKED_PORKCHOP", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/furnace_roasted_hoglin" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/garden_salad.yml b/DuneRealmsGUI/executableitems/regional-cooking/garden_salad.yml new file mode 100644 index 00000000..2fea40b6 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/garden_salad.yml @@ -0,0 +1,27 @@ +{ + "name": "&fGarden Salad", + "material": "MUSHROOM_STEW", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/garden_salad" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/hazelnut_praline.yml b/DuneRealmsGUI/executableitems/regional-cooking/hazelnut_praline.yml new file mode 100644 index 00000000..af3f14fd --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/hazelnut_praline.yml @@ -0,0 +1,27 @@ +{ + "name": "&fHazelnut Praline", + "material": "COOKIE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/hazelnut_praline" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/hazelnuts.yml b/DuneRealmsGUI/executableitems/regional-cooking/hazelnuts.yml new file mode 100644 index 00000000..9f219e12 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/hazelnuts.yml @@ -0,0 +1,27 @@ +{ + "name": "&fHazelnuts", + "material": "COCOA_BEANS", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/hazelnuts" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/hoglin_burger.yml b/DuneRealmsGUI/executableitems/regional-cooking/hoglin_burger.yml new file mode 100644 index 00000000..63f34e8c --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/hoglin_burger.yml @@ -0,0 +1,27 @@ +{ + "name": "&fHoglin Burger", + "material": "COOKED_PORKCHOP", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/hoglin_burger" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/hoglin_cuts.yml b/DuneRealmsGUI/executableitems/regional-cooking/hoglin_cuts.yml new file mode 100644 index 00000000..9a0531c2 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/hoglin_cuts.yml @@ -0,0 +1,27 @@ +{ + "name": "&fHoglin Cuts", + "material": "PORKCHOP", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/hoglin_cuts" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/hot_cocoa.yml b/DuneRealmsGUI/executableitems/regional-cooking/hot_cocoa.yml new file mode 100644 index 00000000..10d97f8f --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/hot_cocoa.yml @@ -0,0 +1,27 @@ +{ + "name": "&fHot Cocoa", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/hot_cocoa" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/industrial_protein_slab.yml b/DuneRealmsGUI/executableitems/regional-cooking/industrial_protein_slab.yml new file mode 100644 index 00000000..cb07a184 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/industrial_protein_slab.yml @@ -0,0 +1,27 @@ +{ + "name": "&fIndustrial Protein Slab", + "material": "COOKED_BEEF", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/industrial_protein_slab" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/jerboa_tallow.yml b/DuneRealmsGUI/executableitems/regional-cooking/jerboa_tallow.yml new file mode 100644 index 00000000..d74c2095 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/jerboa_tallow.yml @@ -0,0 +1,27 @@ +{ + "name": "&fJerboa Tallow", + "material": "HONEYCOMB", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/jerboa_tallow" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/melange_cured_jerboa.yml b/DuneRealmsGUI/executableitems/regional-cooking/melange_cured_jerboa.yml new file mode 100644 index 00000000..64bc8f98 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/melange_cured_jerboa.yml @@ -0,0 +1,27 @@ +{ + "name": "&fMelange-cured Jerboa", + "material": "COOKED_RABBIT", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/melange_cured_jerboa" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/melange_liqueur.yml b/DuneRealmsGUI/executableitems/regional-cooking/melange_liqueur.yml new file mode 100644 index 00000000..f730b34a --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/melange_liqueur.yml @@ -0,0 +1,27 @@ +{ + "name": "&fMelange Liqueur", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/melange_liqueur" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/melange_seasoning.yml b/DuneRealmsGUI/executableitems/regional-cooking/melange_seasoning.yml new file mode 100644 index 00000000..de614167 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/melange_seasoning.yml @@ -0,0 +1,27 @@ +{ + "name": "&fMelange Seasoning", + "material": "ORANGE_DYE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/melange_seasoning" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/melange_tea.yml b/DuneRealmsGUI/executableitems/regional-cooking/melange_tea.yml new file mode 100644 index 00000000..ff305047 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/melange_tea.yml @@ -0,0 +1,27 @@ +{ + "name": "&fMelange Tea", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/melange_tea" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/milk_chocolate.yml b/DuneRealmsGUI/executableitems/regional-cooking/milk_chocolate.yml new file mode 100644 index 00000000..961c7897 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/milk_chocolate.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCaladan Milk Chocolate", + "material": "COOKIE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/milk_chocolate" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/milkshake.yml b/DuneRealmsGUI/executableitems/regional-cooking/milkshake.yml new file mode 100644 index 00000000..2408eecc --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/milkshake.yml @@ -0,0 +1,27 @@ +{ + "name": "&fMilkshake", + "material": "HONEY_BOTTLE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/milkshake" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_burger.yml b/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_burger.yml new file mode 100644 index 00000000..a1f3a495 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_burger.yml @@ -0,0 +1,27 @@ +{ + "name": "&fMooshroom Burger", + "material": "COOKED_BEEF", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/mooshroom_burger" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_cream_liqueur.yml b/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_cream_liqueur.yml new file mode 100644 index 00000000..af3cb978 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_cream_liqueur.yml @@ -0,0 +1,27 @@ +{ + "name": "&fMooshroom Cream Liqueur", + "material": "HONEY_BOTTLE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/mooshroom_cream_liqueur" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_cuts.yml b/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_cuts.yml new file mode 100644 index 00000000..585d2016 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_cuts.yml @@ -0,0 +1,27 @@ +{ + "name": "&fMooshroom Cuts", + "material": "BEEF", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/mooshroom_cuts" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_milk.yml b/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_milk.yml new file mode 100644 index 00000000..ae3392e4 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_milk.yml @@ -0,0 +1,27 @@ +{ + "name": "&fMooshroom Milk", + "material": "MILK_BUCKET", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/mooshroom_milk" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_milkshake.yml b/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_milkshake.yml new file mode 100644 index 00000000..a8d10a1b --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_milkshake.yml @@ -0,0 +1,27 @@ +{ + "name": "&fMooshroom Milkshake", + "material": "HONEY_BOTTLE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/mooshroom_milkshake" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_steak.yml b/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_steak.yml new file mode 100644 index 00000000..f00d0f83 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/mooshroom_steak.yml @@ -0,0 +1,27 @@ +{ + "name": "&fMooshroom Steak", + "material": "COOKED_BEEF", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/mooshroom_steak" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/mycelium_cheese.yml b/DuneRealmsGUI/executableitems/regional-cooking/mycelium_cheese.yml new file mode 100644 index 00000000..192e00ee --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/mycelium_cheese.yml @@ -0,0 +1,27 @@ +{ + "name": "&fMycelium Cheese", + "material": "HONEYCOMB", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/mycelium_cheese" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/mycelium_culture.yml b/DuneRealmsGUI/executableitems/regional-cooking/mycelium_culture.yml new file mode 100644 index 00000000..84339638 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/mycelium_culture.yml @@ -0,0 +1,27 @@ +{ + "name": "&fMycelium Culture", + "material": "RED_MUSHROOM", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/mycelium_culture" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/natural_casings.yml b/DuneRealmsGUI/executableitems/regional-cooking/natural_casings.yml new file mode 100644 index 00000000..963fb707 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/natural_casings.yml @@ -0,0 +1,27 @@ +{ + "name": "&fNatural Casings", + "material": "STRING", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/natural_casings" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/nutrient_gel.yml b/DuneRealmsGUI/executableitems/regional-cooking/nutrient_gel.yml new file mode 100644 index 00000000..0b56e825 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/nutrient_gel.yml @@ -0,0 +1,27 @@ +{ + "name": "&fNutrient Gel", + "material": "HONEY_BOTTLE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/nutrient_gel" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/nutrient_tonic.yml b/DuneRealmsGUI/executableitems/regional-cooking/nutrient_tonic.yml new file mode 100644 index 00000000..47b6e83b --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/nutrient_tonic.yml @@ -0,0 +1,27 @@ +{ + "name": "&fNutrient Tonic", + "material": "HONEY_BOTTLE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/nutrient_tonic" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/ordos_berry_wine.yml b/DuneRealmsGUI/executableitems/regional-cooking/ordos_berry_wine.yml new file mode 100644 index 00000000..036b0b48 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/ordos_berry_wine.yml @@ -0,0 +1,27 @@ +{ + "name": "&fOrdos Berry Wine", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/ordos_berry_wine" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/pork_burger.yml b/DuneRealmsGUI/executableitems/regional-cooking/pork_burger.yml new file mode 100644 index 00000000..f7cb65dd --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/pork_burger.yml @@ -0,0 +1,27 @@ +{ + "name": "&fPork Burger", + "material": "COOKED_PORKCHOP", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/pork_burger" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/pork_jerky.yml b/DuneRealmsGUI/executableitems/regional-cooking/pork_jerky.yml new file mode 100644 index 00000000..d3d13e90 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/pork_jerky.yml @@ -0,0 +1,27 @@ +{ + "name": "&fPork Jerky", + "material": "COOKED_PORKCHOP", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/pork_jerky" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/pork_mince.yml b/DuneRealmsGUI/executableitems/regional-cooking/pork_mince.yml new file mode 100644 index 00000000..53217ecc --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/pork_mince.yml @@ -0,0 +1,27 @@ +{ + "name": "&fPork Mince", + "material": "PORKCHOP", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/pork_mince" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/pork_rinds.yml b/DuneRealmsGUI/executableitems/regional-cooking/pork_rinds.yml new file mode 100644 index 00000000..84cbf5ab --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/pork_rinds.yml @@ -0,0 +1,27 @@ +{ + "name": "&fPork Rinds", + "material": "COOKED_PORKCHOP", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/pork_rinds" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/potato_vodka.yml b/DuneRealmsGUI/executableitems/regional-cooking/potato_vodka.yml new file mode 100644 index 00000000..67656901 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/potato_vodka.yml @@ -0,0 +1,27 @@ +{ + "name": "&fPotato Vodka", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/potato_vodka" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/potato_wash.yml b/DuneRealmsGUI/executableitems/regional-cooking/potato_wash.yml new file mode 100644 index 00000000..0f1d4451 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/potato_wash.yml @@ -0,0 +1,27 @@ +{ + "name": "&fPotato Wash", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/potato_wash" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/praline_box.yml b/DuneRealmsGUI/executableitems/regional-cooking/praline_box.yml new file mode 100644 index 00000000..7ec01e57 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/praline_box.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCaladan Praline Box", + "material": "COOKIE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/praline_box" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/raw_baguette.yml b/DuneRealmsGUI/executableitems/regional-cooking/raw_baguette.yml new file mode 100644 index 00000000..c147adca --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/raw_baguette.yml @@ -0,0 +1,27 @@ +{ + "name": "&fShaped Baguette Dough", + "material": "CLAY_BALL", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/raw_baguette" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/raw_croissant.yml b/DuneRealmsGUI/executableitems/regional-cooking/raw_croissant.yml new file mode 100644 index 00000000..123a7f00 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/raw_croissant.yml @@ -0,0 +1,27 @@ +{ + "name": "&fButter Croissant Dough", + "material": "CLAY_BALL", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/raw_croissant" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/raw_pork_sausages.yml b/DuneRealmsGUI/executableitems/regional-cooking/raw_pork_sausages.yml new file mode 100644 index 00000000..62888d9e --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/raw_pork_sausages.yml @@ -0,0 +1,27 @@ +{ + "name": "&fRaw Pork Sausages", + "material": "PORKCHOP", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/raw_pork_sausages" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/red_mushroom_broth.yml b/DuneRealmsGUI/executableitems/regional-cooking/red_mushroom_broth.yml new file mode 100644 index 00000000..ca8cc112 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/red_mushroom_broth.yml @@ -0,0 +1,27 @@ +{ + "name": "&fRed Mushroom Broth", + "material": "MUSHROOM_STEW", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/red_mushroom_broth" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/refined_protein.yml b/DuneRealmsGUI/executableitems/regional-cooking/refined_protein.yml new file mode 100644 index 00000000..aaa25db7 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/refined_protein.yml @@ -0,0 +1,27 @@ +{ + "name": "&fRefined Protein", + "material": "COOKED_BEEF", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/refined_protein" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/refined_vodka.yml b/DuneRealmsGUI/executableitems/regional-cooking/refined_vodka.yml new file mode 100644 index 00000000..126ee051 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/refined_vodka.yml @@ -0,0 +1,27 @@ +{ + "name": "&fRefined Vodka", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/refined_vodka" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/rendered_hoglin_fat.yml b/DuneRealmsGUI/executableitems/regional-cooking/rendered_hoglin_fat.yml new file mode 100644 index 00000000..dd785c9b --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/rendered_hoglin_fat.yml @@ -0,0 +1,27 @@ +{ + "name": "&fRendered Hoglin Fat", + "material": "HONEYCOMB", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/rendered_hoglin_fat" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/rendered_lard.yml b/DuneRealmsGUI/executableitems/regional-cooking/rendered_lard.yml new file mode 100644 index 00000000..47290907 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/rendered_lard.yml @@ -0,0 +1,27 @@ +{ + "name": "&fRendered Lard", + "material": "HONEYCOMB", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/rendered_lard" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/roast_beef.yml b/DuneRealmsGUI/executableitems/regional-cooking/roast_beef.yml new file mode 100644 index 00000000..eb241ab2 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/roast_beef.yml @@ -0,0 +1,27 @@ +{ + "name": "&fRoast Beef", + "material": "COOKED_BEEF", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/roast_beef" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/sea_salt.yml b/DuneRealmsGUI/executableitems/regional-cooking/sea_salt.yml new file mode 100644 index 00000000..6fbb7a08 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/sea_salt.yml @@ -0,0 +1,27 @@ +{ + "name": "&fSea Salt", + "material": "SUGAR", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/sea_salt" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/seashell_praline.yml b/DuneRealmsGUI/executableitems/regional-cooking/seashell_praline.yml new file mode 100644 index 00000000..031693c4 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/seashell_praline.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCaladan Seashell Praline", + "material": "COOKIE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/seashell_praline" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/sietch_biscuit_dough.yml b/DuneRealmsGUI/executableitems/regional-cooking/sietch_biscuit_dough.yml new file mode 100644 index 00000000..b5814e26 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/sietch_biscuit_dough.yml @@ -0,0 +1,27 @@ +{ + "name": "&fSietch Biscuit Dough", + "material": "CLAY_BALL", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/sietch_biscuit_dough" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/sietch_curing_brine.yml b/DuneRealmsGUI/executableitems/regional-cooking/sietch_curing_brine.yml new file mode 100644 index 00000000..2221d7a5 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/sietch_curing_brine.yml @@ -0,0 +1,27 @@ +{ + "name": "&fSietch Curing Brine", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/sietch_curing_brine" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/sietch_spice_cordial.yml b/DuneRealmsGUI/executableitems/regional-cooking/sietch_spice_cordial.yml new file mode 100644 index 00000000..e28d7eba --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/sietch_spice_cordial.yml @@ -0,0 +1,27 @@ +{ + "name": "&fSietch Spice Cordial", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/sietch_spice_cordial" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/sietch_trail_ration.yml b/DuneRealmsGUI/executableitems/regional-cooking/sietch_trail_ration.yml new file mode 100644 index 00000000..c02bb803 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/sietch_trail_ration.yml @@ -0,0 +1,27 @@ +{ + "name": "&fSietch Trail Ration", + "material": "BREAD", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/sietch_trail_ration" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/sietch_travel_biscuit.yml b/DuneRealmsGUI/executableitems/regional-cooking/sietch_travel_biscuit.yml new file mode 100644 index 00000000..24a3bd4d --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/sietch_travel_biscuit.yml @@ -0,0 +1,27 @@ +{ + "name": "&fSietch Travel Biscuit", + "material": "COOKIE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/sietch_travel_biscuit" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/smoked_pork_sausages.yml b/DuneRealmsGUI/executableitems/regional-cooking/smoked_pork_sausages.yml new file mode 100644 index 00000000..262a2494 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/smoked_pork_sausages.yml @@ -0,0 +1,27 @@ +{ + "name": "&fSmoked Pork Sausages", + "material": "COOKED_PORKCHOP", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/smoked_pork_sausages" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/spice_beer.yml b/DuneRealmsGUI/executableitems/regional-cooking/spice_beer.yml new file mode 100644 index 00000000..abdeb320 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/spice_beer.yml @@ -0,0 +1,27 @@ +{ + "name": "&fSpice Beer", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/spice_beer" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/spice_roasted_chukka.yml b/DuneRealmsGUI/executableitems/regional-cooking/spice_roasted_chukka.yml new file mode 100644 index 00000000..c5e6164d --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/spice_roasted_chukka.yml @@ -0,0 +1,27 @@ +{ + "name": "&fSpice-roasted Chukka", + "material": "COOKED_CHICKEN", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/spice_roasted_chukka" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/spice_vodka.yml b/DuneRealmsGUI/executableitems/regional-cooking/spice_vodka.yml new file mode 100644 index 00000000..1bb399de --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/spice_vodka.yml @@ -0,0 +1,27 @@ +{ + "name": "&fSpice Vodka", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/spice_vodka" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/sweet_berry_juice.yml b/DuneRealmsGUI/executableitems/regional-cooking/sweet_berry_juice.yml new file mode 100644 index 00000000..8f00929e --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/sweet_berry_juice.yml @@ -0,0 +1,27 @@ +{ + "name": "&fSweet Berry Juice", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/sweet_berry_juice" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/vat_protein_burger.yml b/DuneRealmsGUI/executableitems/regional-cooking/vat_protein_burger.yml new file mode 100644 index 00000000..c5ec3dd3 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/vat_protein_burger.yml @@ -0,0 +1,27 @@ +{ + "name": "&fVat-protein Burger", + "material": "COOKED_BEEF", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/vat_protein_burger" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/vegetable_burger.yml b/DuneRealmsGUI/executableitems/regional-cooking/vegetable_burger.yml new file mode 100644 index 00000000..6a8d2e02 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/vegetable_burger.yml @@ -0,0 +1,27 @@ +{ + "name": "&fVegetable Burger", + "material": "BREAD", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/vegetable_burger" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/wheat_ale.yml b/DuneRealmsGUI/executableitems/regional-cooking/wheat_ale.yml new file mode 100644 index 00000000..5e46bb1c --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/wheat_ale.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCaladan Wheat Ale", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/wheat_ale" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/wheat_kvass.yml b/DuneRealmsGUI/executableitems/regional-cooking/wheat_kvass.yml new file mode 100644 index 00000000..0652d991 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/wheat_kvass.yml @@ -0,0 +1,27 @@ +{ + "name": "&fWheat Kvass", + "material": "POTION", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/wheat_kvass" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/white_chocolate.yml b/DuneRealmsGUI/executableitems/regional-cooking/white_chocolate.yml new file mode 100644 index 00000000..8703c74f --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/white_chocolate.yml @@ -0,0 +1,27 @@ +{ + "name": "&fCaladan White Chocolate", + "material": "COOKIE", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/white_chocolate" +} diff --git a/DuneRealmsGUI/executableitems/regional-cooking/winter_root_salad.yml b/DuneRealmsGUI/executableitems/regional-cooking/winter_root_salad.yml new file mode 100644 index 00000000..bc9f7f40 --- /dev/null +++ b/DuneRealmsGUI/executableitems/regional-cooking/winter_root_salad.yml @@ -0,0 +1,27 @@ +{ + "name": "&fWinter-root Salad", + "material": "MUSHROOM_STEW", + "lore": [], + "glow": false, + "disableStack": false, + "keepItemOnDeath": false, + "storeItemInfo": false, + "canBeUsedOnlyByTheOwner": false, + "cancelEventIfNoPermission": false, + "config_5": true, + "config_update": false, + "usageFeatures": { + "usage": -1, + "isRefreshableClean": false, + "usageLimit": -1 + }, + "hiders": { + "hideUsage": true + }, + "giveFirstJoinFeatures": { + "giveFirstJoin": false + }, + "activators": {}, + "variables": {}, + "itemModel": "dunerealms:cooking/winter_root_salad" +} diff --git a/DuneRealmsGUI/src/main/java/com/dunerealms/gui/OrganisationMenus.java b/DuneRealmsGUI/src/main/java/com/dunerealms/gui/OrganisationMenus.java index 41ef0163..0c1e680c 100644 --- a/DuneRealmsGUI/src/main/java/com/dunerealms/gui/OrganisationMenus.java +++ b/DuneRealmsGUI/src/main/java/com/dunerealms/gui/OrganisationMenus.java @@ -44,8 +44,14 @@ final class OrganisationMenus implements Listener { }); } void cookbook(Player player){ + var catalogue=RegionalCookbook.get(plugin); var panel=panel(player,"Cookbook",false); panel.description=recipes.isEmpty()?"The spice recipes are temporarily unavailable.":"Spice cookers, fuel and rails"; + int regionSlot=10; + for(String region:RegionalCookbook.REGION_ORDER){ + if(!catalogue.available())break; + put(panel,regionSlot++,RegionalCookbook.REGIONS.get(region),RegionalCookbook.get(plugin).region(region).size()+" cooking recipes",Material.WRITABLE_BOOK,()->regionalCookbook(player,region,0)); + } int slot=19; for(var recipe:recipes){ int card=slot++; @@ -65,6 +71,58 @@ final class OrganisationMenus implements Listener { }); close(panel,player);show(player,panel); } + private void regionalCookbook(Player player,String region,int page){ + var panel=panel(player,"Cookbook · "+RegionalCookbook.REGIONS.get(region),false); + var entries=RegionalCookbook.get(plugin).region(region); + int perPage=18; + for(int index=page*perPage;indexregionalRecipe(player,recipe,page)); + applyRegionalIcon(panel,slot,recipe.model()); + } + put(panel,45,"Back","Cookbook",Material.ARROW,()->cookbook(player)); + if(page>0)put(panel,47,"Previous","Previous recipes",Material.ARROW,()->regionalCookbook(player,region,page-1)); + if((page+1)*perPageregionalCookbook(player,region,page+1)); + close(panel,player);show(player,panel); + } + private void regionalRecipe(Player player,RegionalCookbook.Entry recipe,int page){ + var panel=panel(player,"Cookbook · "+recipe.name(),false); + String world=RegionalCookbook.REGIONS.get(recipe.region()); + put(panel,4,RegionalCookbook.operation(recipe.station()),world,Material.CRAFTING_TABLE,null); + int index=0; + for(var input:recipe.inputs()){ + var local=RegionalCookbook.get(plugin).entry(input.id()); + var id=input.id().replaceFirst("^minecraft:",""); + var material=local!=null?local.material():Material.matchMaterial(id); + if(material==null)material=switch(id){ + case "spice"->Material.ORANGE_DYE; + case "spice_paste"->Material.SLIME_BALL; + case "spice_dough"->Material.WHEAT; + case "spice_bread"->Material.BREAD; + case "jerboa_cooked_meat"->Material.COOKED_RABBIT; + case "chukka_cooked_meat"->Material.COOKED_CHICKEN; + case "jerboa_raw_meat"->Material.RABBIT; + default->Material.PAPER; + }; + int slot=10+index/3*9+index++%3; + String name=local!=null?local.name():id.equals("potion")?"Plain water bottle":id.replace('_',' '); + put(panel,slot,name,"Quantity: "+input.amount(),material,null); + if(local!=null)applyRegionalIcon(panel,slot,local.model()); + } + put(panel,25,recipe.name(),recipe.grade()+"\n"+recipe.lore()+(recipe.effect().isBlank()?"":"\n"+recipe.effect()), + recipe.material(),null); + applyRegionalIcon(panel,25,recipe.model()); + put(panel,45,"Back",world+" recipes",Material.ARROW,()->regionalCookbook(player,recipe.region(),page)); + close(panel,player);player.openInventory(panel.inventory); + Bukkit.getScheduler().runTaskLater(plugin,panel.gate::expire,2400L); + } + private static void applyRegionalIcon(Panel panel,int slot,NamespacedKey model){ + var icon=panel.inventory.getItem(slot); + icon.editMeta(meta->meta.setItemModel(model)); + panel.inventory.setItem(slot,icon); + } private void cookbookRecipe(Player player,CookbookCatalog.Recipe recipe){ var panel=panel(player,"Cookbook · "+recipe.name(),false); var nativeRecipe=Bukkit.getRecipe(recipe.key()); diff --git a/DuneRealmsGUI/src/main/java/com/dunerealms/gui/RegionalCookbook.java b/DuneRealmsGUI/src/main/java/com/dunerealms/gui/RegionalCookbook.java new file mode 100644 index 00000000..6a920380 --- /dev/null +++ b/DuneRealmsGUI/src/main/java/com/dunerealms/gui/RegionalCookbook.java @@ -0,0 +1,80 @@ +package com.dunerealms.gui; + +import com.google.gson.JsonParser; +import java.io.InputStreamReader; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.stream.Collectors; +import org.bukkit.Material; +import org.bukkit.NamespacedKey; +import org.bukkit.plugin.java.JavaPlugin; + +final class RegionalCookbook { + static final Map REGIONS=Map.of( + "arrakis","Arrakis","caladan","Caladan","kaitain","Kaitain", + "giedi_prime","Giedi Prime","sigma_draconis_iv","Sigma Draconis IV"); + static final List REGION_ORDER=List.of("arrakis","caladan","kaitain","giedi_prime","sigma_draconis_iv"); + private static final List ROMAN=List.of("0","I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII","XIV"); + + record Ingredient(String id,int amount){} + record Entry(String id,String name,String region,String station,Material material,NamespacedKey model, + String grade,String lore,List inputs,String effect){} + private final Map entries; + + private static final Map CATALOGUES=new java.util.WeakHashMap<>(); + static RegionalCookbook get(JavaPlugin plugin){return CATALOGUES.computeIfAbsent(plugin,RegionalCookbook::load);} + + private static RegionalCookbook load(JavaPlugin plugin){ + try(var stream=plugin.getResource("regional-cooking.json")){ + if(stream==null)throw new IllegalStateException("Missing cooking catalogue"); + var entries=new ArrayList(); + var document=JsonParser.parseReader(new InputStreamReader(stream,StandardCharsets.UTF_8)).getAsJsonObject(); + for(var item:document.getAsJsonArray("items")){ + var row=item.getAsJsonObject(); + var input=new ArrayList(); + for(var element:row.getAsJsonArray("inputs")){ + var ingredient=element.getAsJsonObject(); + input.add(new Ingredient(ingredient.get("id").getAsString(),ingredient.get("amount").getAsInt())); + } + var lore=new ArrayList();row.getAsJsonArray("lore").forEach(line->lore.add(line.getAsString())); + var alcohol=row.getAsJsonObject("alcohol"); + String effect=alcohol==null?(row.get("hydration").getAsInt()>0?"Hydration +"+row.get("hydration").getAsInt():""): + Math.round(alcohol.get("chance").getAsFloat()*100)+"% chance of nausea · "+alcohol.get("nauseaSeconds").getAsInt()+" s"; + entries.add(new Entry(row.get("id").getAsString(),row.get("name").getAsString(), + row.get("world").getAsString(),row.get("station").getAsString(), + Material.valueOf(row.get("material").getAsString().toUpperCase(Locale.ROOT)), + NamespacedKey.fromString(row.get("model").getAsString()), + row.get("quality").getAsString().replace('_',' ').toUpperCase(Locale.ROOT)+" · MK "+ROMAN.get(row.get("mark").getAsInt()), + String.join(" ",lore),List.copyOf(input),effect)); + } + return new RegionalCookbook(entries); + }catch(Exception failure){ + plugin.getLogger().warning("Regional Cookbook unavailable: "+failure.getClass().getSimpleName()); + return new RegionalCookbook(List.of()); + } + } + + private RegionalCookbook(List rows){ + entries=rows.stream().collect(Collectors.toMap(Entry::id,row->row,(a,b)->{ + throw new IllegalArgumentException("Duplicate recipe "+a.id()); + },java.util.LinkedHashMap::new)); + } + + boolean available(){return !entries.isEmpty();} + List region(String region){return entries.values().stream().filter(entry->entry.region().equals(region)).toList();} + Entry entry(String id){return entries.get(id);} + static String operation(String station){ + return switch(station){ + case "craft"->"Crafting table"; + case "smoker"->"Smoker"; + case "furnace"->"Furnace"; + case "forage"->"Natural oak or birch leaf decay"; + case "milk"->"Milk an adult mooshroom"; + case "harvest"->"Obtain from native livestock"; + default->throw new IllegalArgumentException("Unknown station "+station); + }; + } +} diff --git a/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/badlands.json b/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/badlands.json index 384568bf..f16ea530 100644 --- a/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/badlands.json +++ b/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/badlands.json @@ -88,6 +88,12 @@ "minCount": 4, "weight": 100 }, + { + "type": "minecraft:zombie", + "maxCount": 4, + "minCount": 2, + "weight": 40 + }, { "type": "minecraft:enderman", "maxCount": 4, diff --git a/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/dripstone_caves.json b/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/dripstone_caves.json index 19a7dc45..a47eb03d 100644 --- a/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/dripstone_caves.json +++ b/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/dripstone_caves.json @@ -88,6 +88,12 @@ "minCount": 4, "weight": 100 }, + { + "type": "minecraft:zombie", + "maxCount": 4, + "minCount": 2, + "weight": 40 + }, { "type": "minecraft:enderman", "maxCount": 4, diff --git a/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/eroded_badlands.json b/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/eroded_badlands.json index 384568bf..f16ea530 100644 --- a/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/eroded_badlands.json +++ b/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/eroded_badlands.json @@ -88,6 +88,12 @@ "minCount": 4, "weight": 100 }, + { + "type": "minecraft:zombie", + "maxCount": 4, + "minCount": 2, + "weight": 40 + }, { "type": "minecraft:enderman", "maxCount": 4, diff --git a/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/pale_garden.json b/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/pale_garden.json index 32d92428..baa7bf0c 100644 --- a/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/pale_garden.json +++ b/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/pale_garden.json @@ -77,6 +77,12 @@ "minCount": 4, "weight": 100 }, + { + "type": "minecraft:zombie", + "maxCount": 4, + "minCount": 2, + "weight": 40 + }, { "type": "minecraft:enderman", "maxCount": 4, diff --git a/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/stony_peaks.json b/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/stony_peaks.json index 00450f63..869543a6 100644 --- a/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/stony_peaks.json +++ b/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/stony_peaks.json @@ -80,6 +80,12 @@ "minCount": 4, "weight": 100 }, + { + "type": "minecraft:zombie", + "maxCount": 4, + "minCount": 2, + "weight": 40 + }, { "type": "minecraft:enderman", "maxCount": 4, diff --git a/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/windswept_gravelly_hills.json b/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/windswept_gravelly_hills.json index eff38c2e..79ee44f6 100644 --- a/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/windswept_gravelly_hills.json +++ b/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/windswept_gravelly_hills.json @@ -76,6 +76,12 @@ "minCount": 4, "weight": 100 }, + { + "type": "minecraft:zombie", + "maxCount": 4, + "minCount": 2, + "weight": 40 + }, { "type": "minecraft:enderman", "maxCount": 4, diff --git a/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/wooded_badlands.json b/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/wooded_badlands.json index c2dd7222..095d3734 100644 --- a/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/wooded_badlands.json +++ b/DuneTerrain/planet-datapacks/giedi_prime/data/minecraft/worldgen/biome/wooded_badlands.json @@ -88,6 +88,12 @@ "minCount": 4, "weight": 100 }, + { + "type": "minecraft:zombie", + "maxCount": 4, + "minCount": 2, + "weight": 40 + }, { "type": "minecraft:enderman", "maxCount": 4, diff --git a/DuneTerrain/src/main/java/com/example/duneterrain/DuneTerrain.java b/DuneTerrain/src/main/java/com/example/duneterrain/DuneTerrain.java index 68431548..b2e8fa93 100644 --- a/DuneTerrain/src/main/java/com/example/duneterrain/DuneTerrain.java +++ b/DuneTerrain/src/main/java/com/example/duneterrain/DuneTerrain.java @@ -479,7 +479,8 @@ public final class DuneTerrain extends JavaPlugin implements Listener { int lx = x + dx, lz = z + dz, ly = y + dy; if (lx < 0 || lx >= 16 || lz < 0 || lz >= 16 || ly >= maxY || !data.getType(lx, ly, lz).isAir()) continue; org.bukkit.block.data.type.Leaves leaves = (org.bukkit.block.data.type.Leaves) Bukkit.createBlockData(Material.OAK_LEAVES); - leaves.setPersistent(true); + leaves.setPersistent(false); + leaves.setDistance(Math.min(7,Math.max(1,Math.abs(dx)+Math.abs(dz)+Math.max(0,dy-height+1)))); data.setBlock(lx, ly, lz, leaves); } } diff --git a/DuneTerrain/src/main/java/com/example/duneterrain/KaitainLivestock.java b/DuneTerrain/src/main/java/com/example/duneterrain/KaitainLivestock.java new file mode 100644 index 00000000..4154ca71 --- /dev/null +++ b/DuneTerrain/src/main/java/com/example/duneterrain/KaitainLivestock.java @@ -0,0 +1,53 @@ +package com.example.duneterrain; + +import java.util.concurrent.ThreadLocalRandom; +import org.bukkit.Bukkit; +import org.bukkit.World; +import org.bukkit.entity.Cow; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.MushroomCow; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.Listener; +import org.bukkit.event.entity.CreatureSpawnEvent; +import org.bukkit.plugin.Plugin; + +final class KaitainLivestock implements Listener { + private final Plugin plugin; + + KaitainLivestock(Plugin plugin) { + this.plugin = plugin; + } + + static boolean applies(World world, EntityType type, CreatureSpawnEvent.SpawnReason reason) { + return world.getEnvironment() == World.Environment.NORMAL && world.getName().equals("kaitain") + && type == EntityType.COW && reason == CreatureSpawnEvent.SpawnReason.NATURAL; + } + + static Cow.Variant cowVariant(double roll) { + if (roll < .06) return Cow.Variant.COLD; + if (roll < .28) return Cow.Variant.WARM; + return Cow.Variant.TEMPERATE; + } + + @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) + public void spawn(CreatureSpawnEvent event) { + var entity = event.getEntity(); + if (!applies(entity.getWorld(),entity.getType(),event.getSpawnReason()) || entity.hasMetadata("NPC")) return; + Cow cow = (Cow) entity; + var random = ThreadLocalRandom.current(); + cow.setVariant(cowVariant(random.nextDouble())); + double variant = random.nextDouble(); + if (variant >= .04) return; + // Let the original spawn finish and respect its cancellation. The replacement + // has its own native spawn event, so other plugins can reject it independently. + Bukkit.getScheduler().runTask(plugin, () -> { + if (!cow.isValid() || cow.isDead() || cow.hasMetadata("NPC")) return; + var at = cow.getLocation(); + if (!applies(at.getWorld(),cow.getType(),event.getSpawnReason()) || !at.getWorld().isChunkLoaded(at.getBlockX()>>4,at.getBlockZ()>>4)) return; + MushroomCow mushroom = at.getWorld().spawn(at,MushroomCow.class,CreatureSpawnEvent.SpawnReason.NATURAL,false, + mob -> mob.setVariant(variant < .01 ? MushroomCow.Variant.BROWN : MushroomCow.Variant.RED)); + if (mushroom.isValid()) cow.remove(); + }); + } +} diff --git a/DuneTerrain/src/main/java/com/example/duneterrain/NativePlants.java b/DuneTerrain/src/main/java/com/example/duneterrain/NativePlants.java index 48ab1515..291ed936 100644 --- a/DuneTerrain/src/main/java/com/example/duneterrain/NativePlants.java +++ b/DuneTerrain/src/main/java/com/example/duneterrain/NativePlants.java @@ -14,6 +14,7 @@ public final class NativePlants implements Listener { if(!PLANTS.containsKey(world))return true; if((material.equals("MELON")||material.contains("MELON_STEM"))&&!world.equals("caladan"))return false; if((material.equals("PUMPKIN")||material.contains("PUMPKIN_STEM"))&&!world.equals("kaitain"))return false; + if(world.equals("giedi_prime")&&material.equals("POTATOES"))return true; if((world.equals("arrakis")||world.equals("giedi_prime"))&&CROPS.contains(material))return false; return !(material.endsWith("_SAPLING")||Set.of("MANGROVE_PROPAGULE","AZALEA","FLOWERING_AZALEA","BAMBOO","CRIMSON_FUNGUS","WARPED_FUNGUS").contains(material))||PLANTS.get(world).contains(material); } diff --git a/DuneTerrain/src/main/java/com/example/duneterrain/PlanetMobs.java b/DuneTerrain/src/main/java/com/example/duneterrain/PlanetMobs.java index b4eda079..53868bcc 100644 --- a/DuneTerrain/src/main/java/com/example/duneterrain/PlanetMobs.java +++ b/DuneTerrain/src/main/java/com/example/duneterrain/PlanetMobs.java @@ -10,9 +10,9 @@ import org.bukkit.plugin.Plugin; public final class PlanetMobs implements Listener { private static final Set NETHER=Set.of("BLAZE","GHAST","HOGLIN","MAGMA_CUBE","PIGLIN","PIGLIN_BRUTE","STRIDER","WITHER_SKELETON","ZOGLIN","ZOMBIFIED_PIGLIN","SKELETON","ENDERMAN"); private static final Set PASSIVE=Set.of("ALLAY","ARMADILLO","AXOLOTL","BAT","CAMEL","CAT","CHICKEN","COD","COW","DONKEY","FROG","GLOW_SQUID","HORSE","MUSHROOM_COW","MOOSHROOM","MULE","OCELOT","PARROT","PIG","PUFFERFISH","RABBIT","SALMON","SHEEP","SNIFFER","SNOWMAN","SNOW_GOLEM","SQUID","STRIDER","TADPOLE","TROPICAL_FISH","TURTLE","VILLAGER","WANDERING_TRADER"); - public static boolean allowed(String planet,String mob,boolean island){if("sigma_draconis_iv".equals(planet)&&"GOAT".equals(mob)||allowedColdPig(planet,mob))return true;return switch(planet){case "caladan"->!mob.equals("CREEPER");case "kaitain"->PASSIVE.contains(mob);case "giedi_prime"->NETHER.contains(mob);case "sigma_draconis_iv"->Set.of("SKELETON","STRAY","WITHER_SKELETON","BOGGED").contains(mob)||island&&Set.of("MUSHROOM_COW","MOOSHROOM","SULFUR_CUBE").contains(mob);default->true;};} + public static boolean allowed(String planet,String mob,boolean island){if("sigma_draconis_iv".equals(planet)&&"GOAT".equals(mob)||allowedColdPig(planet,mob))return true;return switch(planet){case "caladan"->!mob.equals("CREEPER");case "kaitain"->PASSIVE.contains(mob);case "giedi_prime"->NETHER.contains(mob)||mob.equals("ZOMBIE");case "sigma_draconis_iv"->Set.of("SKELETON","STRAY","WITHER_SKELETON","BOGGED").contains(mob)||island&&Set.of("MUSHROOM_COW","MOOSHROOM","SULFUR_CUBE").contains(mob);default->true;};} public static boolean allowedSpawn(String planet,String mob,boolean island,String reason){return allowed(planet,mob,island)||planet.equals("giedi_prime")&&(reason.equals("SPAWNER")&&Set.of("SKELETON","ZOMBIE","SPIDER","CAVE_SPIDER").contains(mob)||mob.equals("WARDEN"));} - public static void start(Plugin plugin){Bukkit.getPluginManager().registerEvents(new PlanetMobs(),plugin);Bukkit.getPluginManager().registerEvents(new NativePlants(),plugin);PlanetSoil.start(plugin);} + public static void start(Plugin plugin){Bukkit.getPluginManager().registerEvents(new PlanetMobs(),plugin);Bukkit.getPluginManager().registerEvents(new KaitainLivestock(plugin),plugin);Bukkit.getPluginManager().registerEvents(new NativePlants(),plugin);PlanetSoil.start(plugin);} @EventHandler(priority=EventPriority.HIGHEST,ignoreCancelled=true) public void spawning(CreatureSpawnEvent event){if(sigmaColdPig(event))return;var e=event.getEntity();String planet=e.getWorld().getName();if(!TemperateLandscape.enabled(planet))return; if(e instanceof PiglinAbstract piglin&&planet.equals("giedi_prime"))piglin.setImmuneToZombification(true);if(e instanceof Hoglin hoglin&&planet.equals("giedi_prime"))hoglin.setImmuneToZombification(true); if(event.getSpawnReason()==CreatureSpawnEvent.SpawnReason.CUSTOM||e.hasMetadata("NPC")||e instanceof Tameable pet&&pet.isTamed())return; diff --git a/DuneTerrain/src/test/java/com/example/duneterrain/PlanetProfilesTest.java b/DuneTerrain/src/test/java/com/example/duneterrain/PlanetProfilesTest.java index e72d8c9b..b9a5d0b1 100644 --- a/DuneTerrain/src/test/java/com/example/duneterrain/PlanetProfilesTest.java +++ b/DuneTerrain/src/test/java/com/example/duneterrain/PlanetProfilesTest.java @@ -18,10 +18,24 @@ class PlanetProfilesTest { for(String crop:new String[]{"WHEAT","COCOA","POTATOES","SUGAR_CANE","NETHER_WART","CAVE_VINES"})assertFalse(NativePlants.allowed("arrakis",crop)); assertTrue(NativePlants.allowed("arrakis","OAK_SAPLING"));assertFalse(NativePlants.allowed("arrakis","AZALEA"));assertTrue(NativePlants.allowed("caladan","MANGROVE_PROPAGULE")); } - @Test void giediSpawnerExceptionsDoNotEnableOrdinaryZombieOrSpiderSpawns(){ - for(String mob:new String[]{"ZOMBIE","SPIDER","CAVE_SPIDER"}){assertTrue(PlanetMobs.allowedSpawn("giedi_prime",mob,false,"SPAWNER"));assertFalse(PlanetMobs.allowedSpawn("giedi_prime",mob,false,"NATURAL"));assertFalse(PlanetMobs.allowedSpawn("kaitain",mob,false,"SPAWNER"));} + @Test void giediAllowsNaturalZombiesAndKeepsSpidersSpawnerOnly(){ + assertTrue(PlanetMobs.allowedSpawn("giedi_prime","ZOMBIE",false,"NATURAL")); + for(String mob:new String[]{"SPIDER","CAVE_SPIDER"}){assertTrue(PlanetMobs.allowedSpawn("giedi_prime",mob,false,"SPAWNER"));assertFalse(PlanetMobs.allowedSpawn("giedi_prime",mob,false,"NATURAL"));assertFalse(PlanetMobs.allowedSpawn("kaitain",mob,false,"SPAWNER"));} assertTrue(PlanetMobs.allowedSpawn("giedi_prime","WARDEN",false,"NATURAL"));assertFalse(PlanetMobs.allowedSpawn("kaitain","WARDEN",false,"NATURAL")); } + @Test void giediPotatoesAreTheOnlyNewCrop(){ + assertTrue(NativePlants.allowed("giedi_prime","POTATOES")); + for(String crop:new String[]{"CARROTS","WHEAT","BEETROOTS","COCOA","SUGAR_CANE"})assertFalse(NativePlants.allowed("giedi_prime",crop)); + assertTrue(NativePlants.allowed("giedi_prime_nether","NETHER_WART")); + } + @Test void kaitainAllowsLivestockButRejectsNativeHostilesRegardlessOfSpawnRoute(){ + for(String reason:new String[]{"NATURAL","CHUNK_GEN","PATROL","RAID","SPAWNER","TRIAL_SPAWNER","WARDEN"}){ + for(String mob:new String[]{"PILLAGER","RAVAGER","ZOMBIE","SKELETON","CREEPER","WARDEN","BREEZE","PHANTOM"}) + assertFalse(PlanetMobs.allowedSpawn("kaitain",mob,false,reason),mob+" via "+reason); + } + for(String animal:new String[]{"COW","MOOSHROOM","SHEEP","CHICKEN","PIG"}) + assertTrue(PlanetMobs.allowedSpawn("kaitain",animal,false,"NATURAL"),animal); + } @Test void ordosCropsFreezeOnlyWhenTheirColumnIsExposed(){ assertTrue(NativePlants.frozenCrop("sigma_draconis_iv","WHEAT",65,64)); assertFalse(NativePlants.frozenCrop("sigma_draconis_iv","WHEAT",65,70)); diff --git a/JarvisConnector/build.gradle.kts b/JarvisConnector/build.gradle.kts index 6c7fa07d..b2d9b827 100644 --- a/JarvisConnector/build.gradle.kts +++ b/JarvisConnector/build.gradle.kts @@ -15,6 +15,7 @@ tasks.jar { archiveFileName.set("jarvistranslator.jar") } tasks.processResources { + from(rootProject.file("../network/content-assets/cookbook/regional-cooking.json")) from(rootProject.file("../network/content-assets/planet-artwork/profiles.json")) { rename { "planet-item-profiles.json" } } diff --git a/JarvisConnector/src/main/java/com/dunerealms/jarvis/NativeLeafDecay.java b/JarvisConnector/src/main/java/com/dunerealms/jarvis/NativeLeafDecay.java new file mode 100644 index 00000000..b06e11cd --- /dev/null +++ b/JarvisConnector/src/main/java/com/dunerealms/jarvis/NativeLeafDecay.java @@ -0,0 +1,93 @@ +package com.dunerealms.jarvis; + +import java.util.ArrayDeque; +import java.util.HashSet; +import java.util.LinkedHashSet; +import org.bukkit.Bukkit; +import org.bukkit.Tag; +import org.bukkit.World; +import org.bukkit.block.Block; +import org.bukkit.block.BlockFace; +import org.bukkit.block.data.type.Leaves; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.Listener; +import org.bukkit.event.block.BlockBreakEvent; +import org.bukkit.event.block.BlockBurnEvent; +import org.bukkit.event.block.BlockExplodeEvent; +import org.bukkit.event.entity.EntityExplodeEvent; +import org.bukkit.plugin.Plugin; + +final class NativeLeafDecay implements Listener { + private static final BlockFace[] NEIGHBORS={BlockFace.UP,BlockFace.DOWN,BlockFace.NORTH,BlockFace.SOUTH,BlockFace.EAST,BlockFace.WEST}; + private static final int RADIUS=8, WIDTH=RADIUS*2+1, VOLUME=WIDTH*WIDTH*WIDTH; + private final LinkedHashSet logs=new LinkedHashSet<>(); + private final LinkedHashSet leaves=new LinkedHashSet<>(); + private int offset; + private record Search(Block block,int distance){} + + NativeLeafDecay(Plugin plugin) { + Bukkit.getPluginManager().registerEvents(this,plugin); + Bukkit.getScheduler().runTaskTimer(plugin,this::update,10,1); + } + + private void removed(Block block){ + if(block.getWorld().getEnvironment()!=World.Environment.THE_END&&Tag.LOGS.isTagged(block.getType()) + && logs.size()<128)logs.add(block); + } + + @EventHandler(priority=EventPriority.MONITOR,ignoreCancelled=true) + public void broken(BlockBreakEvent event){removed(event.getBlock());} + + @EventHandler(priority=EventPriority.MONITOR,ignoreCancelled=true) + public void burned(BlockBurnEvent event){removed(event.getBlock());} + + @EventHandler(priority=EventPriority.MONITOR,ignoreCancelled=true) + public void explosion(EntityExplodeEvent event){event.blockList().forEach(this::removed);} + + @EventHandler(priority=EventPriority.MONITOR,ignoreCancelled=true) + public void explosion(BlockExplodeEvent event){event.blockList().forEach(this::removed);} + + private void update(){ + for(int count=0;count<256&&!logs.isEmpty()&&leaves.size()<1024;count++){ + Block log=logs.getFirst(); + if(!loaded(log)||Tag.LOGS.isTagged(log.getType())){ + logs.removeFirst();offset=0;continue; + } + int x=offset%WIDTH-RADIUS,y=offset/WIDTH%WIDTH-RADIUS,z=offset/(WIDTH*WIDTH)-RADIUS; + Block candidate=log.getRelative(x,y,z); + if(loaded(candidate)&&Tag.LEAVES.isTagged(candidate.getType()))leaves.add(candidate); + if(++offset==VOLUME){logs.removeFirst();offset=0;} + } + for(int count=0;count<8&&!leaves.isEmpty();count++){ + Block block=leaves.removeFirst(); + if(!loaded(block)||!(block.getBlockData() instanceof Leaves data)||data.isPersistent()||hasSupport(block))continue; + data.setDistance(7); + block.setBlockData(data,false); + block.randomTick(); + } + } + + private static boolean loaded(Block block){ + World world=block.getWorld(); + return block.getY()>=world.getMinHeight()&&block.getY()>4,block.getZ()>>4); + } + + private static boolean hasSupport(Block start){ + var queue=new ArrayDeque(); + var seen=new HashSet(); + queue.add(new Search(start,0));seen.add(start); + while(!queue.isEmpty()){ + Search node=queue.remove(); + for(BlockFace face:NEIGHBORS){ + Block next=node.block().getRelative(face); + if(next.getY()=next.getWorld().getMaxHeight())continue; + if(!loaded(next)||Tag.LOGS.isTagged(next.getType()))return true; + if(node.distance()<5&&Tag.LEAVES.isTagged(next.getType())&&seen.add(next)) + queue.add(new Search(next,node.distance()+1)); + } + } + return false; + } +} diff --git a/JarvisConnector/src/main/java/com/dunerealms/jarvis/RegionalCooking.java b/JarvisConnector/src/main/java/com/dunerealms/jarvis/RegionalCooking.java new file mode 100644 index 00000000..d9a3eaac --- /dev/null +++ b/JarvisConnector/src/main/java/com/dunerealms/jarvis/RegionalCooking.java @@ -0,0 +1,126 @@ +package com.dunerealms.jarvis; + +import com.google.gson.JsonObject; +import com.google.gson.JsonParser; +import java.io.InputStreamReader; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.Set; +import org.bukkit.Material; +import org.bukkit.NamespacedKey; +import org.bukkit.inventory.ItemStack; +import org.bukkit.inventory.RecipeChoice; +import org.bukkit.inventory.meta.PotionMeta; +import org.bukkit.plugin.Plugin; +import org.bukkit.potion.PotionType; + +final class RegionalCooking { + private static final Set STATIONS=Set.of("craft","smoker","furnace","harvest","forage","milk"); + private static final Map LEGACY=Map.of( + "spice",Material.ORANGE_DYE,"spice_paste",Material.SLIME_BALL,"spice_dough",Material.WHEAT, + "spice_bread",Material.BREAD,"jerboa_raw_meat",Material.RABBIT,"jerboa_cooked_meat",Material.COOKED_RABBIT, + "chukka_cooked_meat",Material.COOKED_CHICKEN); + private final Map products=new LinkedHashMap<>(); + private final Map prototypes=new LinkedHashMap<>(); + private final ItemMetadataOverlay metadata; + + record Product(String id, String world, Material material, String model, String station, + int mark, int amount, String lore, RegionalFoodItem.Serving serving, List inputs) {} + record Input(String id, int amount) {} + + static void start(Plugin plugin,ItemMetadataOverlay metadata,SurvivalFoodRecipes engine) throws ReflectiveOperationException { + var cooking=new RegionalCooking(plugin,metadata,engine); + String server=plugin.getConfig().getString("native.server-key", + plugin.getDataFolder().getAbsoluteFile().getParentFile().getParentFile().getName()); + new RegionalFoodStations(plugin,server,cooking.recipes()); + new RegionalFoodAcquisition(plugin,cooking); + plugin.getLogger().info("Regional Cooking & Baking recipes and products ready"); + } + + private RegionalCooking(Plugin plugin,ItemMetadataOverlay metadata,SurvivalFoodRecipes engine) throws ReflectiveOperationException { + this.metadata=metadata; + var stream=plugin.getResource("regional-cooking.json"); + if(stream==null)throw new IllegalStateException("Missing cooking catalogue"); + JsonObject doc=JsonParser.parseReader(new InputStreamReader(stream,StandardCharsets.UTF_8)).getAsJsonObject(); + if(doc.get("schema").getAsInt()!=1)throw new IllegalArgumentException("Invalid cooking catalogue"); + for(var element:doc.getAsJsonArray("items")){ + Product row=parse(element.getAsJsonObject()); + if(products.putIfAbsent(row.id(),row)!=null)throw new IllegalArgumentException("Duplicate regional product "+row.id()); + ItemStack item=RegionalFoodItem.output(engine.nativeItem(row.id()),row.id(),row.material(),row.model(),row.world(), + row.mark(),row.amount(),row.lore(),row.serving(),metadata); + prototypes.put(row.id(),item); + } + } + + private static Product parse(JsonObject row) { + String id=text(row,"id"),world=text(row,"world"),station=text(row,"station"),kind=text(row,"kind"),model=text(row,"model"); + int mark=row.get("mark").getAsInt(),amount=row.get("amount").getAsInt(); + var material=Material.valueOf(text(row,"material").toUpperCase(Locale.ROOT)); + if(!id.matches("[a-z_]+")||!STATIONS.contains(station)||!model.equals("dunerealms:cooking/"+id) + ||mark<3||mark>14||!CraftingGrades.quality(mark).equals(text(row,"quality")))throw new IllegalArgumentException("Invalid product "+id); + var alcohol=row.getAsJsonObject("alcohol"); + var serving=kind.equals("resource") ? null : new RegionalFoodItem.Serving( + row.get("nutrition").getAsInt(),row.get("saturation").getAsFloat(),kind.equals("drink")||alcohol!=null, + row.get("hydration").getAsInt(),alcohol==null?0:Math.round(alcohol.get("chance").getAsFloat()*100), + alcohol==null?0:alcohol.get("nauseaSeconds").getAsInt()); + var inputs=new ArrayList(); + for(var entry:row.getAsJsonArray("inputs")){ + var input=entry.getAsJsonObject(); + inputs.add(new Input(text(input,"id"),input.get("amount").getAsInt())); + } + var lore=new ArrayList();row.getAsJsonArray("lore").forEach(line->lore.add(line.getAsString())); + return new Product(id,world,material,model.substring("dunerealms:".length()),station,mark,amount,String.join(" ",lore),serving,List.copyOf(inputs)); + } + + private static String text(JsonObject row,String field){return row.get(field).getAsString();} + + Product product(String id){return products.get(id);} + ItemStack item(String id){return prototypes.get(id).clone();} + ItemStack item(String id,String origin){ + var result=item(id); + result.editMeta(meta->meta.getPersistentDataContainer().remove(ItemOrigin.WORLD)); + ItemOrigin.created(result,origin); + metadata.stamp(result); + return result; + } + + private List recipes() { + var rows=new ArrayList(); + for(Product row:products.values()){ + RegionalFoodStations.Station station=switch(row.station()){ + case "craft"->RegionalFoodStations.Station.CRAFTING; + case "smoker"->RegionalFoodStations.Station.SMOKER; + case "furnace"->RegionalFoodStations.Station.FURNACE; + default->null; + }; + if(station==null)continue; + var inputs=new ArrayList(); + for(Input input:row.inputs()){ + if(input.amount()<1||input.amount()>9)throw new IllegalArgumentException("Invalid ingredient count in "+row.id()); + String id=input.id(),origin=row.id().equals("spice_beer")&&id.equals("minecraft:wheat")?"caladan":null; + RecipeChoice choice; + if(id.startsWith("minecraft:")){ + var material=Material.valueOf(id.substring("minecraft:".length()).toUpperCase(Locale.ROOT)); + choice=new RecipeChoice.MaterialChoice(material); + id=null; + }else if(id.equals("hoglin_cuts"))choice=new RecipeChoice.ExactChoice(item(id,"giedi_prime_nether").asOne()); + else if(products.containsKey(id))choice=new RecipeChoice.ExactChoice(item(id).asOne()); + else if(LEGACY.containsKey(id))choice=new RecipeChoice.MaterialChoice(LEGACY.get(id)); + else throw new IllegalArgumentException("Unknown ingredient "+id); + for(int n=0;n craftingRecipe; + private final Method keyOf, lookup, add, remove, valueOf, size, stackAt, toBukkit, toNative; + private final java.lang.reflect.Constructor holder; + + RegionalCraftRemainders() throws ReflectiveOperationException { + var server=Class.forName("net.minecraft.server.MinecraftServer"); + var managerType=Class.forName("net.minecraft.world.item.crafting.RecipeManager"); + var holderType=Class.forName("net.minecraft.world.item.crafting.RecipeHolder"); + var resourceKey=Class.forName("net.minecraft.resources.ResourceKey"); + var recipeType=Class.forName("net.minecraft.world.item.crafting.Recipe"); + var input=Class.forName("net.minecraft.world.item.crafting.CraftingInput"); + var stack=Class.forName("net.minecraft.world.item.ItemStack"); + var item=Class.forName("org.bukkit.craftbukkit.inventory.CraftItemStack"); + craftingRecipe=Class.forName("net.minecraft.world.item.crafting.CraftingRecipe"); + manager=server.getMethod("getRecipeManager").invoke(server.getMethod("getServer").invoke(null)); + recipeRegistry=Class.forName("net.minecraft.core.registries.Registries").getField("RECIPE").get(null); + keyOf=Class.forName("org.bukkit.craftbukkit.util.CraftNamespacedKey").getMethod("toResourceKey",resourceKey,NamespacedKey.class); + lookup=managerType.getMethod("byKey",resourceKey); + add=managerType.getMethod("addRecipe",holderType); + remove=managerType.getMethod("removeRecipe",resourceKey); + valueOf=holderType.getMethod("value"); + holder=holderType.getConstructor(resourceKey,recipeType); + size=input.getMethod("size"); + stackAt=input.getMethod("getItem",int.class); + toBukkit=item.getMethod("asBukkitCopy",stack); + toNative=item.getMethod("asNMSCopy",ItemStack.class); + } + + void install(NamespacedKey name) throws ReflectiveOperationException { + Object key=keyOf.invoke(null,recipeRegistry,name); + Object originalHolder=((Optional)lookup.invoke(manager,key)).orElseThrow(); + Object original=valueOf.invoke(originalHolder); + if(!craftingRecipe.isInstance(original))throw new IllegalArgumentException("Expected regional native craft recipe"); + Object wrapped=Proxy.newProxyInstance(craftingRecipe.getClassLoader(),new Class[]{craftingRecipe},(p,method,args)->{ + try { + Object outcome=method.invoke(original,args); + if(method.getName().equals("getRemainingItems")){ + @SuppressWarnings("unchecked") List remainder=(List)outcome; + Object input=args[0]; + int slots=(Integer)size.invoke(input); + for(int i=0;iMaterial.GLASS_BOTTLE; + case MUSHROOM_STEW,RABBIT_STEW,BEETROOT_SOUP,SUSPICIOUS_STEW->Material.BOWL; + default->null; + }; + } +} diff --git a/JarvisConnector/src/main/java/com/dunerealms/jarvis/RegionalFoodAcquisition.java b/JarvisConnector/src/main/java/com/dunerealms/jarvis/RegionalFoodAcquisition.java new file mode 100644 index 00000000..3732de96 --- /dev/null +++ b/JarvisConnector/src/main/java/com/dunerealms/jarvis/RegionalFoodAcquisition.java @@ -0,0 +1,124 @@ +package com.dunerealms.jarvis; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; +import java.util.concurrent.ThreadLocalRandom; +import org.bukkit.Bukkit; +import org.bukkit.GameMode; +import org.bukkit.Material; +import org.bukkit.World; +import org.bukkit.block.data.type.Leaves; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.MushroomCow; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.Listener; +import org.bukkit.event.block.LeavesDecayEvent; +import org.bukkit.event.entity.EntityDeathEvent; +import org.bukkit.event.player.PlayerBucketFillEvent; +import org.bukkit.event.player.PlayerInteractEntityEvent; +import org.bukkit.event.player.PlayerItemConsumeEvent; +import org.bukkit.inventory.EquipmentSlot; +import org.bukkit.inventory.ItemStack; +import org.bukkit.persistence.PersistentDataType; +import org.bukkit.plugin.Plugin; +import org.bukkit.potion.PotionEffect; +import org.bukkit.potion.PotionEffectType; + +final class RegionalFoodAcquisition implements Listener { + private final Plugin plugin; + private final RegionalCooking cooking; + private final Map milking=new HashMap<>(); + private record Milk(MushroomCow source,EquipmentSlot hand) {} + + RegionalFoodAcquisition(Plugin plugin,RegionalCooking cooking){ + this.plugin=plugin; + this.cooking=cooking; + Bukkit.getPluginManager().registerEvents(this,plugin); + } + + private static boolean kaitain(World world){ + return world.getEnvironment()==World.Environment.NORMAL&&world.getName().equals("kaitain"); + } + + @EventHandler(priority=EventPriority.HIGHEST) + public void death(EntityDeathEvent event){ + var entity=event.getEntity(); + if(entity.hasMetadata("NPC"))return; + World world=entity.getWorld(); + String id; + Material raw,cooked; + if(entity instanceof MushroomCow&&kaitain(world)){ + id="mooshroom_cuts";raw=Material.BEEF;cooked=Material.COOKED_BEEF; + }else if(entity.getType()==EntityType.HOGLIN&&world.getEnvironment()==World.Environment.NETHER + &&world.getName().equals("giedi_prime_nether")){ + id="hoglin_cuts";raw=Material.PORKCHOP;cooked=Material.COOKED_PORKCHOP; + }else return; + var drops=event.getDrops(); + var replaced=new ArrayList(); + for(ItemStack item:drops){ + if(item.getType()!=raw&&item.getType()!=cooked){replaced.add(item);continue;} + var product=cooking.item(id,world.getName()); + product.setAmount(item.getAmount()); + replaced.add(product); + } + drops.clear();drops.addAll(replaced); + } + + @EventHandler(priority=EventPriority.MONITOR,ignoreCancelled=true) + public void beginMilk(PlayerInteractEntityEvent event){ + if(!(event.getRightClicked() instanceof MushroomCow source)||!source.isAdult() + ||source.hasMetadata("NPC")||!kaitain(source.getWorld()) + ||event.getPlayer().getInventory().getItem(event.getHand()).getType()!=Material.BUCKET)return; + UUID player=event.getPlayer().getUniqueId(); + var intent=new Milk(source,event.getHand()); + milking.put(player,intent); + Bukkit.getScheduler().runTask(plugin,()->milking.remove(player,intent)); + } + + @EventHandler(priority=EventPriority.HIGHEST,ignoreCancelled=true) + public void fillMilk(PlayerBucketFillEvent event){ + if(event.getItemStack()==null||event.getItemStack().getType()!=Material.MILK_BUCKET)return; + var intent=milking.remove(event.getPlayer().getUniqueId()); + if(intent==null||intent.hand()!=event.getHand()||!intent.source().isValid() + ||!intent.source().getLocation().getBlock().equals(event.getBlockClicked()))return; + event.setItemStack(cooking.item("mooshroom_milk")); + } + + @EventHandler(priority=EventPriority.MONITOR,ignoreCancelled=true) + public void forage(LeavesDecayEvent event){ + var block=event.getBlock();World world=block.getWorld(); + if(!world.getName().equals("caladan")||world.getEnvironment()!=World.Environment.NORMAL + ||!(block.getBlockData() instanceof Leaves leaves)||leaves.isPersistent() + ||block.getType()!=Material.OAK_LEAVES&&block.getType()!=Material.BIRCH_LEAVES + ||ThreadLocalRandom.current().nextDouble()>=.02)return; + Bukkit.getScheduler().runTask(plugin,()->{ + if(!event.isCancelled()&&world.isChunkLoaded(block.getX()>>4,block.getZ()>>4)&&block.getType().isAir()) + world.dropItemNaturally(block.getLocation().add(.5,.5,.5),cooking.item("hazelnuts")); + }); + } + + @EventHandler(priority=EventPriority.MONITOR,ignoreCancelled=true) + public void consumed(PlayerItemConsumeEvent event){ + var data=event.getItem().getItemMeta().getPersistentDataContainer(); + String id=data.get(RegionalFoodItem.FOOD_ID,PersistentDataType.STRING); + if(id==null||!id.equals(data.get(RegionalFoodItem.ENGINE_ID,PersistentDataType.STRING)))return; + var row=cooking.product(id); + if(row==null||row.serving()==null||row.serving().intoxicationChance()==0)return; + Player player=event.getPlayer(); + Bukkit.getScheduler().runTask(plugin,()->{ + if(!player.isOnline()||event.isCancelled()||!survivalWorld(player) + ||ThreadLocalRandom.current().nextInt(100)>=row.serving().intoxicationChance())return; + player.addPotionEffect(new PotionEffect(PotionEffectType.NAUSEA,row.serving().intoxicationSeconds()*20,0)); + }); + } + + private static boolean survivalWorld(Player player){ + if(player.getGameMode()!=GameMode.SURVIVAL&&player.getGameMode()!=GameMode.ADVENTURE)return false; + String name=player.getWorld().getName(); + return ItemOrigin.label(name)!=null&&!name.startsWith("lobby")&&!name.equals("guild_lobby"); + } +} diff --git a/JarvisConnector/src/main/java/com/dunerealms/jarvis/RegionalFoodItem.java b/JarvisConnector/src/main/java/com/dunerealms/jarvis/RegionalFoodItem.java new file mode 100644 index 00000000..5f0c94f2 --- /dev/null +++ b/JarvisConnector/src/main/java/com/dunerealms/jarvis/RegionalFoodItem.java @@ -0,0 +1,85 @@ +package com.dunerealms.jarvis; + +import io.papermc.paper.datacomponent.DataComponentTypes; +import io.papermc.paper.datacomponent.item.Consumable; +import io.papermc.paper.datacomponent.item.FoodProperties; +import io.papermc.paper.datacomponent.item.UseRemainder; +import io.papermc.paper.datacomponent.item.consumable.ItemUseAnimation; +import java.util.ArrayList; +import java.util.List; +import net.kyori.adventure.key.Key; +import net.kyori.adventure.text.Component; +import net.kyori.adventure.text.format.NamedTextColor; +import net.kyori.adventure.text.format.TextDecoration; +import org.bukkit.Material; +import org.bukkit.NamespacedKey; +import org.bukkit.inventory.ItemStack; +import org.bukkit.persistence.PersistentDataType; + +/** Apply stable regional metadata at production, before exposing the native recipe prototype. */ +final class RegionalFoodItem { + static final NamespacedKey ENGINE_ID = new NamespacedKey("executableitems","ei-id"); + static final NamespacedKey FOOD_ID = new NamespacedKey("dunerealms","regional_food"); + static final NamespacedKey THIRST = new NamespacedKey("dunerealms","regional_hydration"); + + record Serving(int nutrition, float saturation, boolean drink, int hydration, + int intoxicationChance, int intoxicationSeconds) { + Serving { + if (nutrition < 0 || nutrition > 20 || !Float.isFinite(saturation) || saturation < 0 || saturation > 20 + || hydration < 0 || hydration > 100 || intoxicationChance < 0 || intoxicationChance > 100 + || intoxicationSeconds < 0 || intoxicationSeconds > 45 + || intoxicationChance > 0 && (!drink || hydration != 0 || intoxicationSeconds == 0)) { + throw new IllegalArgumentException("Invalid regional serving"); + } + } + } + + private RegionalFoodItem() {} + + static ItemStack output(ItemStack definition, String id, Material material, String model, String world, + int mark, int amount, String flavour, Serving serving, ItemMetadataOverlay metadata) { + if (definition == null || definition.getType()!=material || mark < 1 || mark > 14 + || amount < 1 || amount > definition.getMaxStackSize() || ItemOrigin.label(world)==null) { + throw new IllegalArgumentException("Invalid regional item definition: "+id); + } + var result=definition.clone(); + var meta=result.getItemMeta(); + var data=meta.getPersistentDataContainer(); + if (!id.equals(data.get(ENGINE_ID,PersistentDataType.STRING)) || data.has(ItemOrigin.WORLD)) { + throw new IllegalArgumentException("Wrong regional item identity: "+id); + } + data.set(FOOD_ID,PersistentDataType.STRING,id); + data.set(new NamespacedKey("dunerealms","quality"),PersistentDataType.STRING,CraftingGrades.quality(mark)); + data.set(new NamespacedKey("dunerealms","equipment_mark"),PersistentDataType.STRING,Integer.toString(mark)); + data.set(new NamespacedKey("dunerealms","item_class"),PersistentDataType.STRING,serving==null?"resource":"consumable"); + data.set(new NamespacedKey("dunerealms","metadata_policy"),PersistentDataType.STRING,ItemMetadataPolicy.VERSION); + if (model != null) meta.setItemModel(new NamespacedKey("dunerealms",model)); + var lore=new ArrayList<>(meta.hasLore()?meta.lore():List.of()); + if (!flavour.isBlank()) lore.add(Component.text(flavour,NamedTextColor.GRAY).decoration(TextDecoration.ITALIC,false)); + if (serving != null && serving.hydration() > 0) + data.set(THIRST,PersistentDataType.INTEGER,serving.hydration()); + if (serving != null && serving.intoxicationChance() > 0) lore.add(Component.text( + "Drunkenness: "+serving.intoxicationChance()+"% · "+serving.intoxicationSeconds()+" s", + NamedTextColor.GRAY).decoration(TextDecoration.ITALIC,false)); + meta.lore(lore); + result.setItemMeta(meta); + if (serving != null) { + result.setData(DataComponentTypes.FOOD,FoodProperties.food().nutrition(serving.nutrition()) + .saturation(serving.saturation()).canAlwaysEat(serving.drink())); + var consume=Consumable.consumable().consumeSeconds(1.6f) + .animation(serving.drink()?ItemUseAnimation.DRINK:ItemUseAnimation.EAT) + .sound(Key.key(serving.drink()?"entity.generic.drink":"entity.generic.eat")) + .hasConsumeParticles(!serving.drink()); + result.setData(DataComponentTypes.CONSUMABLE,consume); + Material container=RegionalCraftRemainders.container(material); + if(container!=null)result.setData(DataComponentTypes.USE_REMAINDER,UseRemainder.useRemainder(new ItemStack(container))); + } else { + result.unsetData(DataComponentTypes.FOOD); + result.unsetData(DataComponentTypes.CONSUMABLE); + } + ItemOrigin.created(result,world); + metadata.stamp(result); + result.setAmount(amount); + return result; + } +} diff --git a/JarvisConnector/src/main/java/com/dunerealms/jarvis/RegionalFoodStations.java b/JarvisConnector/src/main/java/com/dunerealms/jarvis/RegionalFoodStations.java new file mode 100644 index 00000000..85899c90 --- /dev/null +++ b/JarvisConnector/src/main/java/com/dunerealms/jarvis/RegionalFoodStations.java @@ -0,0 +1,144 @@ +package com.dunerealms.jarvis; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; +import org.bukkit.Bukkit; +import org.bukkit.Keyed; +import org.bukkit.Material; +import org.bukkit.NamespacedKey; +import org.bukkit.World; +import org.bukkit.block.Crafter; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.Listener; +import org.bukkit.event.block.BlockCookEvent; +import org.bukkit.event.block.CrafterCraftEvent; +import org.bukkit.event.inventory.CraftItemEvent; +import org.bukkit.event.inventory.PrepareItemCraftEvent; +import org.bukkit.inventory.FurnaceRecipe; +import org.bukkit.inventory.ItemStack; +import org.bukkit.inventory.Recipe; +import org.bukkit.inventory.RecipeChoice; +import org.bukkit.inventory.ShapelessRecipe; +import org.bukkit.inventory.SmokingRecipe; +import org.bukkit.persistence.PersistentDataType; +import org.bukkit.plugin.Plugin; + +final class RegionalFoodStations implements Listener { + private static final Set WORLDS=Set.of("arrakis","caladan","giedi_prime","kaitain","sigma_draconis_iv"); + private static final NamespacedKey LEGACY=new NamespacedKey("dunerealms","item"); + private final Map productions = new HashMap<>(); + + enum Station { CRAFTING, FURNACE, SMOKER } + + record Ingredient(RecipeChoice choice, String itemId, String origin) { + boolean matches(ItemStack item) { + if (item == null || item.isEmpty() || !choice.test(item)) return false; + var data=item.getItemMeta().getPersistentDataContainer(); + String actual=data.get(RegionalFoodItem.ENGINE_ID,PersistentDataType.STRING); + if (data.has(new NamespacedKey("dunerealms","preview_only"))) return false; + if ("spice".equals(itemId)&&!ExchangeInventory.rawSpice(item))return false; + if (itemId == null) { + if (actual != null || data.has(LEGACY) || item.getType()==Material.POTION&&!RegionalCooking.plainWater(item)) return false; + } else if (!itemId.equals(actual) && !itemId.equals(data.get(LEGACY,PersistentDataType.STRING))) return false; + return origin == null || origin.equals(data.get(ItemOrigin.WORLD,PersistentDataType.STRING)); + } + } + + record Production(NamespacedKey key, String world, Station station, List ingredients, + ItemStack result, int cookTicks) { + Production { + ingredients=List.copyOf(ingredients); + if (!WORLDS.contains(world) || ingredients.isEmpty() || ingredients.size() > 9 + || station != Station.CRAFTING && (ingredients.size() != 1 || cookTicks <= 0)) + throw new IllegalArgumentException("Invalid regional recipe "+key); + } + } + + RegionalFoodStations(Plugin plugin, String serverKey, List rows) throws ReflectiveOperationException { + String local=serverKey.replace('-','_'); + RegionalCraftRemainders remainders=null; + for (Production row : rows) { + if (!local.equals(row.world())) continue; + if (productions.putIfAbsent(row.key(),row)!=null || Bukkit.getRecipe(row.key())!=null) + throw new IllegalStateException("Duplicate regional recipe "+row.key()); + if (!Bukkit.addRecipe(recipe(row))) throw new IllegalStateException("Could not register "+row.key()); + if(row.station()==Station.CRAFTING && row.ingredients().stream().anyMatch(ingredient->RegionalCraftRemainders.container(ingredient.choice().getItemStack().getType())!=null)){ + if(remainders==null)remainders=new RegionalCraftRemainders(); + remainders.install(row.key()); + } + } + Bukkit.getPluginManager().registerEvents(this,plugin); + } + + static Recipe recipe(Production row) { + if (row.station()==Station.CRAFTING) { + var recipe=new ShapelessRecipe(row.key(),row.result()); + for (Ingredient ingredient : row.ingredients()) recipe.addIngredient(ingredient.choice()); + return recipe; + } + RecipeChoice choice=row.ingredients().getFirst().choice(); + return row.station()==Station.FURNACE + ? new FurnaceRecipe(row.key(),row.result(),choice,0f,row.cookTicks()) + : new SmokingRecipe(row.key(),row.result(),choice,0f,row.cookTicks()); + } + + static boolean permitted(Production row, World world, ItemStack[] matrix) { + return world != null && world.getEnvironment()==World.Environment.NORMAL && row.world().equals(world.getName()) + && matches(row.ingredients(),matrix); + } + + static boolean matches(List ingredients, ItemStack[] matrix) { + var items=new ArrayList(); + for (ItemStack item : matrix) if (item!=null&&!item.isEmpty()) items.add(item); + return ingredients.size()==items.size() && match(ingredients,items,0,0); + } + + private static boolean match(List ingredients,List items,int current,int assigned) { + if (current==ingredients.size()) return true; + for (int index=0;index