diff --git a/gradle.properties b/gradle.properties index 17315d0..bd78065 100644 --- a/gradle.properties +++ b/gradle.properties @@ -60,7 +60,7 @@ mod_name=Gambling Plus Mod # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=All Rights Reserved # The mod version. See https://semver.org/ -mod_version=1.0.0 +mod_version=1.0.1 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/resources/data/ikgamblingplusmod/loot_table/chests/casino_loot.json b/src/main/resources/data/ikgamblingplusmod/loot_table/chests/casino_loot.json new file mode 100644 index 0000000..7bdff8a --- /dev/null +++ b/src/main/resources/data/ikgamblingplusmod/loot_table/chests/casino_loot.json @@ -0,0 +1,118 @@ +{ + "type": "minecraft:chest", + "pools": [ + { + "rolls": { + "min": 3, + "max": 8 + }, + "entries": [ + { + "type": "minecraft:item", + "name": "minecraft:diamond", + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 5, + "max": 20 + } + } + ], + "weight": 10 + }, + { + "type": "minecraft:item", + "name": "minecraft:emerald", + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 10, + "max": 30 + } + } + ], + "weight": 9 + }, + { + "type": "minecraft:item", + "name": "minecraft:gold_ingot", + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 20, + "max": 40 + } + } + ], + "weight": 9 + }, + { + "type": "minecraft:item", + "name": "ikgamblingplusmod:ruby", + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 30, + "max": 50 + } + } + ], + "weight": 7 + }, + { + "type": "minecraft:item", + "name": "minecraft:shulker_shell", + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 1, + "max": 4 + } + } + ], + "weight": 5 + }, + { + "type": "minecraft:item", + "name": "minecraft:totem_of_undying", + "weight": 2 + }, + { + "type": "minecraft:item", + "name": "minecraft:enchanted_golden_apple", + "weight": 1 + }, + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:enchant_randomly" + } + ], + "name": "minecraft:book", + "weight": 3 + }, + { + "type": "minecraft:item", + "name": "minecraft:evoker_spawn_egg", + "weight": 1 + }, + { + "type": "minecraft:item", + "name": "ikgamblingplusmod:catching_egg", + "weight": 2 + }, + { + "type": "minecraft:item", + "name": "minecraft:zombie_horse_spawn_egg", + "weight": 1 + } + ] + } + ] +} diff --git a/src/main/resources/data/ikgamblingplusmod/loot_table/chests/trade_center_loot.json b/src/main/resources/data/ikgamblingplusmod/loot_table/chests/trade_center_loot.json new file mode 100644 index 0000000..b842c3a --- /dev/null +++ b/src/main/resources/data/ikgamblingplusmod/loot_table/chests/trade_center_loot.json @@ -0,0 +1,113 @@ +{ + "type": "minecraft:chest", + "pools": [ + { + "rolls": { + "min": 5, + "max": 10 + }, + "entries": [ + { + "type": "minecraft:item", + "name": "minecraft:diamond", + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 1, + "max": 5 + } + } + ], + "weight": 3 + }, + { + "type": "minecraft:item", + "name": "minecraft:emerald", + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 4, + "max": 15 + } + } + ], + "weight": 7 + }, + { + "type": "minecraft:item", + "name": "minecraft:gold_ingot", + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 5, + "max": 10 + } + } + ], + "weight": 4 + }, + { + "type": "minecraft:item", + "name": "minecraft:iron_ingot", + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 10, + "max": 15 + } + } + ], + "weight": 8 + }, + { + "type": "minecraft:item", + "name": "ikgamblingplusmod:ruby", + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 15, + "max": 40 + } + } + ], + "weight": 7 + }, + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:enchant_randomly" + } + ], + "name": "minecraft:book", + "weight": 3 + }, + { + "type": "minecraft:item", + "name": "ikgamblingplusmod:catching_egg", + "weight": 1 + }, + { + "type": "minecraft:item", + "name": "minecraft:cherry_sapling", + "weight": 2 + }, + { + "type": "minecraft:item", + "name": "minecraft:mangrove_propagule", + "weight": 2 + }, + { + "type": "minecraft:item", + "name": "minecraft:pale_oak_sapling", + "weight": 2 + } + ] + } + ] +} diff --git a/src/main/resources/data/ikgamblingplusmod/structure/casino.nbt b/src/main/resources/data/ikgamblingplusmod/structure/casino.nbt new file mode 100644 index 0000000..1f0e9c2 Binary files /dev/null and b/src/main/resources/data/ikgamblingplusmod/structure/casino.nbt differ diff --git a/src/main/resources/data/ikgamblingplusmod/structure/trade_center.nbt b/src/main/resources/data/ikgamblingplusmod/structure/trade_center.nbt new file mode 100644 index 0000000..cf07d08 Binary files /dev/null and b/src/main/resources/data/ikgamblingplusmod/structure/trade_center.nbt differ diff --git a/src/main/resources/data/ikgamblingplusmod/worldgen/_tmo/ruby_ore_middle.json b/src/main/resources/data/ikgamblingplusmod/worldgen/_tmo/ruby_ore_middle.json deleted file mode 100644 index 1faaf83..0000000 --- a/src/main/resources/data/ikgamblingplusmod/worldgen/_tmo/ruby_ore_middle.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "feature": "ikgamblingplusmod:ruby_ore", - "placement": [ - { - "type": "minecraft:count", - "count": 10 - }, - { - "type": "minecraft:in_square" - }, - { - "type": "minecraft:height_range", - "height": { - "type": "minecraft:trapezoid", - "max_inclusive": { - "absolute": 56 - }, - "min_inclusive": { - "absolute": -24 - } - } - }, - { - "type": "minecraft:biome" - } - ] -} \ No newline at end of file diff --git a/src/main/resources/data/ikgamblingplusmod/worldgen/_tmo/ruby_ore_small.json b/src/main/resources/data/ikgamblingplusmod/worldgen/_tmo/ruby_ore_small.json deleted file mode 100644 index a564ab9..0000000 --- a/src/main/resources/data/ikgamblingplusmod/worldgen/_tmo/ruby_ore_small.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "feature": "ikgamblingplusmod:ruby_ore", - "placement": [ - { - "type": "minecraft:count", - "count": 10 - }, - { - "type": "minecraft:in_square" - }, - { - "type": "minecraft:height_range", - "height": { - "type": "minecraft:uniform", - "max_inclusive": { - "absolute": 72 - }, - "min_inclusive": { - "above_bottom": 0 - } - } - }, - { - "type": "minecraft:biome" - } - ] -} \ No newline at end of file diff --git a/src/main/resources/data/ikgamblingplusmod/worldgen/_tmo/ruby_ore_upper.json b/src/main/resources/data/ikgamblingplusmod/worldgen/_tmo/ruby_ore_upper.json deleted file mode 100644 index ae2a8b7..0000000 --- a/src/main/resources/data/ikgamblingplusmod/worldgen/_tmo/ruby_ore_upper.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "feature": "ikgamblingplusmod:ruby_ore", - "placement": [ - { - "type": "minecraft:count", - "count": 90 - }, - { - "type": "minecraft:in_square" - }, - { - "type": "minecraft:height_range", - "height": { - "type": "minecraft:trapezoid", - "max_inclusive": { - "absolute": 384 - }, - "min_inclusive": { - "absolute": 80 - } - } - }, - { - "type": "minecraft:biome" - } - ] -} \ No newline at end of file diff --git a/src/main/resources/data/ikgamblingplusmod/worldgen/structure/casino.json b/src/main/resources/data/ikgamblingplusmod/worldgen/structure/casino.json new file mode 100644 index 0000000..dfeff22 --- /dev/null +++ b/src/main/resources/data/ikgamblingplusmod/worldgen/structure/casino.json @@ -0,0 +1,16 @@ +{ + "type": "minecraft:jigsaw", + "start_pool": "ikgamblingplusmod:casino/start_pool", + "size": 1, + "step": "surface_structures", + "biomes": "#minecraft:is_overworld", + "terrain_adaptation": "none", + "start_height": { + "absolute": 0 + }, + "use_expansion_hack": false, + "adapt_noise": false, + "project_start_to_heightmap": "WORLD_SURFACE_WG", + "max_distance_from_center": 80, + "spawn_overrides": {} +} \ No newline at end of file diff --git a/src/main/resources/data/ikgamblingplusmod/worldgen/structure/trade_center.json b/src/main/resources/data/ikgamblingplusmod/worldgen/structure/trade_center.json new file mode 100644 index 0000000..357d6fa --- /dev/null +++ b/src/main/resources/data/ikgamblingplusmod/worldgen/structure/trade_center.json @@ -0,0 +1,16 @@ +{ + "type": "minecraft:jigsaw", + "start_pool": "ikgamblingplusmod:trade_center/start_pool", + "size": 1, + "step": "surface_structures", + "biomes": "#minecraft:is_overworld", + "terrain_adaptation": "none", + "start_height": { + "absolute": 0 + }, + "use_expansion_hack": false, + "adapt_noise": false, + "project_start_to_heightmap": "WORLD_SURFACE_WG", + "max_distance_from_center": 80, + "spawn_overrides": {} +} \ No newline at end of file diff --git a/src/main/resources/data/ikgamblingplusmod/worldgen/structure_set/casino.json b/src/main/resources/data/ikgamblingplusmod/worldgen/structure_set/casino.json new file mode 100644 index 0000000..878d796 --- /dev/null +++ b/src/main/resources/data/ikgamblingplusmod/worldgen/structure_set/casino.json @@ -0,0 +1,14 @@ +{ + "structures": [ + { + "structure": "ikgamblingplusmod:casino", + "weight": 1 + } + ], + "placement": { + "type": "minecraft:random_spread", + "spacing": 50, + "separation": 20, + "salt": 589176981756 + } +} diff --git a/src/main/resources/data/ikgamblingplusmod/worldgen/structure_set/trade_center.json b/src/main/resources/data/ikgamblingplusmod/worldgen/structure_set/trade_center.json new file mode 100644 index 0000000..f20854e --- /dev/null +++ b/src/main/resources/data/ikgamblingplusmod/worldgen/structure_set/trade_center.json @@ -0,0 +1,14 @@ +{ + "structures": [ + { + "structure": "ikgamblingplusmod:trade_center", + "weight": 1 + } + ], + "placement": { + "type": "minecraft:random_spread", + "spacing": 40, + "separation": 10, + "salt": 589176981753 + } +} diff --git a/src/main/resources/data/ikgamblingplusmod/worldgen/template_pool/casino/start_pool.json b/src/main/resources/data/ikgamblingplusmod/worldgen/template_pool/casino/start_pool.json new file mode 100644 index 0000000..d123669 --- /dev/null +++ b/src/main/resources/data/ikgamblingplusmod/worldgen/template_pool/casino/start_pool.json @@ -0,0 +1,15 @@ +{ + "name": "ikgamblingplusmod:casino/start_pool", + "fallback": "minecraft:empty", + "elements": [ + { + "element": { + "location": "ikgamblingplusmod:casino", + "processors": "minecraft:empty", + "element_type": "minecraft:single_pool_element", + "projection": "rigid" + }, + "weight": 1 + } + ] +} diff --git a/src/main/resources/data/ikgamblingplusmod/worldgen/template_pool/trade_center/start_pool.json b/src/main/resources/data/ikgamblingplusmod/worldgen/template_pool/trade_center/start_pool.json new file mode 100644 index 0000000..fa74aed --- /dev/null +++ b/src/main/resources/data/ikgamblingplusmod/worldgen/template_pool/trade_center/start_pool.json @@ -0,0 +1,15 @@ +{ + "name": "ikgamblingplusmod:trade_center/start_pool", + "fallback": "minecraft:empty", + "elements": [ + { + "element": { + "location": "ikgamblingplusmod:trade_center", + "processors": "minecraft:empty", + "element_type": "minecraft:single_pool_element", + "projection": "rigid" + }, + "weight": 1 + } + ] +}