Files
misode.github.io/assets/index.cd3d7116.js
2022-10-26 00:01:47 +00:00

3 lines
110 KiB
JavaScript

var Ze=Object.defineProperty,Je=Object.defineProperties;var Qe=Object.getOwnPropertyDescriptors;var Ae=Object.getOwnPropertySymbols;var et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable;var Ee=(r,e,t)=>e in r?Ze(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,g=(r,e)=>{for(var t in e||(e={}))et.call(e,t)&&Ee(r,t,e[t]);if(Ae)for(var t of Ae(e))tt.call(e,t)&&Ee(r,t,e[t]);return r},W=(r,e)=>Je(r,Qe(e));import{v as k,u as ne}from"./index.8b902684.js";function rt(r,e){return e.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(o){if(o!=="default"&&!(o in r)){var d=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(r,o,d.get?d:{enumerable:!0,get:function(){return t[o]}})}})}),Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var X={},se={};Object.defineProperty(se,"__esModule",{value:!0});se.initCollections=void 0;function ot(r){r.register("advancement_trigger",["minecraft:allay_drop_item_on_block","minecraft:avoid_vibration","minecraft:bee_nest_destroyed","minecraft:bred_animals","minecraft:brewed_potion","minecraft:changed_dimension","minecraft:channeled_lightning","minecraft:construct_beacon","minecraft:consume_item","minecraft:cured_zombie_villager","minecraft:effects_changed","minecraft:enchanted_item","minecraft:enter_block","minecraft:entity_hurt_player","minecraft:entity_killed_player","minecraft:fall_from_height","minecraft:filled_bucket","minecraft:fishing_rod_hooked","minecraft:hero_of_the_village","minecraft:impossible","minecraft:inventory_changed","minecraft:item_durability_changed","minecraft:item_used_on_block","minecraft:kill_mob_near_sculk_catalyst","minecraft:killed_by_crossbow","minecraft:levitation","minecraft:lightning_strike","minecraft:location","minecraft:nether_travel","minecraft:placed_block","minecraft:player_generates_container_loot","minecraft:player_hurt_entity","minecraft:player_interacted_with_entity","minecraft:player_killed_entity","minecraft:recipe_unlocked","minecraft:ride_entity_in_lava","minecraft:shot_crossbow","minecraft:slept_in_bed","minecraft:slide_down_block","minecraft:started_riding","minecraft:summoned_entity","minecraft:tame_animal","minecraft:target_hit","minecraft:tick","minecraft:thrown_item_picked_up_by_entity","minecraft:thrown_item_picked_up_by_player","minecraft:used_ender_eye","minecraft:used_totem","minecraft:using_item","minecraft:villager_trade","minecraft:voluntary_exile"]),r.register("keybind",["key.advancements","key.attack","key.back","key.chat","key.command","key.drop","key.forward","key.fullscreen","key.hotbar.1","key.hotbar.2","key.hotbar.3","key.hotbar.4","key.hotbar.5","key.hotbar.6","key.hotbar.7","key.hotbar.8","key.hotbar.9","key.inventory","key.jump","key.left","key.loadToolbarActivator","key.pickItem","key.playerlist","key.right","key.saveToolbarActivator","key.screenshot","key.smoothCamera","key.sneak","key.spectatorOutlines","key.sprint","key.swapOffhand","key.togglePerspective","key.use"]),r.register("slot",["mainhand","offhand","head","chest","legs","feet"]),r.register("gamemode",["survival","creative","adventure","spectator"]),r.register("entity_source",["this","killer","direct_killer","killer_player"]),r.register("copy_source",["block_entity","this","killer","killer_player"]),r.register("loot_table_apply_bonus_formula",["minecraft:uniform_bonus_count","minecraft:binomial_with_bonus_count","minecraft:ore_drops"]),r.register("map_decoration",["mansion","monument","player","frame","red_marker","blue_marker","target_x","target_point","player_off_map","player_off_limits","red_x","banner_white","banner_orange","banner_magenta","banner_light_blue","banner_yellow","banner_lime","banner_pink","banner_gray","banner_light_gray","banner_cyan","banner_purple","banner_blue","banner_brown","banner_green","banner_red","banner_black"]),r.register("map_feature",["bastion_remnant","buried_treasure","desert_pyramid","endcity","fortress","igloo","jungle_pyramid","mansion","mineshaft","monument","nether_fossil","ocean_ruin","pillager_outpost","ruined_portal","shipwreck","stronghold","swamp_hut","village"]),r.register("recipe_group",["bed","light_gray_dye","iron_ingot","wooden_stairs","black_dye","stained_terracotta","dyed_bed","magenta_dye","bark","rabbit_stew","light_blue_dye","wooden_fence_gate","planks","stained_glass","wooden_door","stained_glass_pane","wooden_fence","sticks","concrete_powder","wooden_pressure_plate","boat","brown_dye","yellow_dye","bonemeal","red_dye","wooden_trapdoor","wooden_button","gold_ingot","pink_dye","wooden_slab","orange_dye","carpet","sign","wool","sugar","blue_dye","white_dye","banner","netherite_ingot"]),r.register("biome_category",["beach","desert","extreme_hills","forest","icy","jungle","mesa","mountain","mushroom","nether","none","ocean","plains","river","savanna","swamp","taiga","the_end","underground"]),r.register("heightmap_type",["MOTION_BLOCKING","MOTION_BLOCKING_NO_LEAVES","OCEAN_FLOOR","OCEAN_FLOOR_WG","WORLD_SURFACE","WORLD_SURFACE_WG"]),r.register("generation_step",["air","liquid"]),r.register("decoration_step",["raw_generation","lakes","local_modifications","underground_structures","surface_structures","strongholds","underground_ores","underground_decoration","fluid_springs","vegetal_decoration","top_layer_modification"]),r.register("loot_context_type",["minecraft:empty","minecraft:chest","minecraft:command","minecraft:selector","minecraft:fishing","minecraft:entity","minecraft:gift","minecraft:barter","minecraft:advancement_reward","minecraft:advancement_entity","minecraft:generic","minecraft:block"]),r.register("banner_pattern",["base","square_bottom_left","square_bottom_right","square_top_left","square_top_right","stripe_bottom","stripe_top","stripe_left","stripe_right","stripe_center","stripe_middle","stripe_downright","stripe_downleft","small_stripes","cross","straight_cross","triangle_bottom","triangle_top","triangles_bottom","triangles_top","diagonal_left","diagonal_up_right","diagonal_up_left","diagonal_right","circle","rhombus","half_vertical","half_horizontal","half_vertical_right","half_horizontal_bottom","border","curly_border","gradient","gradient_up","bricks","globe","creeper","skull","flower","mojang","piglin"]),r.register("dye_color",["white","orange","magenta","light_blue","yellow","lime","pink","gray","light_gray","cyan","purple","blue","brown","green","red","black"]),r.register("cave_surface",["floor","ceiling"]),r.register("direction",["down","up","north","east","south","west"]),r.register("axis",["x","y","z"]),r.register("display_position",["firstperson_righthand","firstperson_lefthand","thirdperson_righthand","thirdperson_lefthand","gui","head","ground","fixed"]),r.register("gui_light",["front","side"]),r.register("item_model_predicates",["angle","blocking","broken","cast","charged","cooldown","custom_model_data","damage","damaged","firework","lefthanded","pull","pulling","throwing","time"]),r.register("glyph_provider_type",["bitmap","ttf","space","legacy_unicode"]),r.register("mob_category",["monster","creature","ambient","axolotls","underground_water_creature","water_creature","water_ambient","misc"])}se.initCollections=ot;var le={},me={};Object.defineProperty(me,"__esModule",{value:!0});me.initAdvancementSchemas=void 0;const s=k;function it(r,e){const t=s.Reference.bind(void 0,r),o=s.StringNode.bind(void 0,e),d=(0,s.ChoiceNode)([{type:"object",node:(0,s.Opt)(t("entity_predicate")),change:n=>{var c,l;return(l=(c=n[0])===null||c===void 0?void 0:c.predicate)!==null&&l!==void 0?l:{}}},{type:"list",node:(0,s.ListNode)(t("condition")),change:n=>[{condition:"minecraft:entity_properties",predicate:n}]}],{context:"conditions"});r.register("advancement",(0,s.Mod)((0,s.ObjectNode)({display:(0,s.Opt)((0,s.Mod)((0,s.ObjectNode)({icon:(0,s.ObjectNode)({item:o({validator:"resource",params:{pool:"item"}}),nbt:(0,s.Opt)(o({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:t("text_component"),description:t("text_component"),background:(0,s.Opt)(o()),frame:(0,s.Opt)(o({enum:["task","challenge","goal"]})),show_toast:(0,s.Opt)((0,s.BooleanNode)()),announce_to_chat:(0,s.Opt)((0,s.BooleanNode)()),hidden:(0,s.Opt)((0,s.BooleanNode)())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:(0,s.Opt)(o({validator:"resource",params:{pool:"$advancement"}})),criteria:(0,s.MapNode)(o(),t("advancement_criteria")),requirements:(0,s.Opt)((0,s.ListNode)((0,s.ListNode)(o()))),rewards:(0,s.Opt)((0,s.ObjectNode)({function:(0,s.Opt)(o({validator:"resource",params:{pool:"$function"}})),loot:(0,s.Opt)((0,s.ListNode)(o({validator:"resource",params:{pool:"$loot_table"}}))),recipes:(0,s.Opt)((0,s.ListNode)(o({validator:"resource",params:{pool:"$recipe"}}))),experience:(0,s.Opt)((0,s.NumberNode)({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),r.register("advancement_criteria",(0,s.ObjectNode)({trigger:o({validator:"resource",params:{pool:e.get("advancement_trigger")}}),conditions:(0,s.Opt)((0,s.ObjectNode)({player:(0,s.Mod)(d,{enabled:n=>n.pop().push("trigger").get()!=="minecraft:impossible"}),[s.Switch]:["pop",{push:"trigger"}],[s.Case]:{"minecraft:allay_drop_item_on_block":{item:(0,s.Opt)(t("item_predicate")),location:(0,s.Opt)(t("location_predicate"))},"minecraft:bee_nest_destroyed":{block:(0,s.Opt)(o({validator:"resource",params:{pool:"block"}})),num_bees_inside:(0,s.Opt)((0,s.NumberNode)({integer:!0})),item:(0,s.Opt)(t("item_predicate"))},"minecraft:bred_animals":{parent:d,partner:d,child:d},"minecraft:brewed_potion":{potion:(0,s.Opt)(o({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:(0,s.Opt)(o({validator:"resource",params:{pool:"$dimension"}})),to:(0,s.Opt)(o({validator:"resource",params:{pool:"$dimension"}}))},"minecraft:channeled_lightning":{victims:(0,s.Opt)((0,s.ListNode)(d))},"minecraft:construct_beacon":{level:t("int_bounds")},"minecraft:consume_item":{item:(0,s.Opt)(t("item_predicate"))},"minecraft:cured_zombie_villager":{villager:d,zombie:d},"minecraft:effects_changed":{effects:(0,s.Opt)((0,s.MapNode)(o({validator:"resource",params:{pool:"mob_effect"}}),t("status_effect_predicate"))),source:(0,s.Opt)(d)},"minecraft:enter_block":{block:(0,s.Opt)(o({validator:"resource",params:{pool:"block"}})),state:(0,s.Opt)((0,s.MapNode)(o(),o(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:t("int_bounds"),item:(0,s.Opt)(t("item_predicate"))},"minecraft:entity_hurt_player":{damage:(0,s.Opt)(t("damage_predicate"))},"minecraft:entity_killed_player":{entity:d,killing_blow:(0,s.Opt)(t("damage_source_predicate"))},"minecraft:fall_from_height":{start_position:(0,s.Opt)(t("location_predicate")),distance:(0,s.Opt)(t("distance_predicate"))},"minecraft:filled_bucket":{item:(0,s.Opt)(t("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:d,item:(0,s.Opt)(t("item_predicate"))},"minecraft:inventory_changed":{slots:(0,s.Opt)((0,s.ObjectNode)({empty:t("int_bounds"),occupied:t("int_bounds"),full:t("int_bounds")})),items:(0,s.Opt)((0,s.ListNode)(t("item_predicate")))},"minecraft:item_durability_changed":{delta:t("int_bounds"),durability:t("int_bounds"),item:(0,s.Opt)(t("item_predicate"))},"minecraft:item_used_on_block":{item:(0,s.Opt)(t("item_predicate")),location:(0,s.Opt)(t("location_predicate"))},"minecraft:kill_mob_near_sculk_catalyst":{entity:d,killing_blow:(0,s.Opt)(t("damage_source_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:t("int_bounds"),victims:(0,s.Opt)((0,s.ListNode)(d))},"minecraft:levitation":{distance:(0,s.Opt)(t("distance_predicate")),duration:t("int_bounds")},"minecraft:lightning_strike":{lightning:d,bystander:d},"minecraft:nether_travel":{start_position:(0,s.Opt)(t("location_predicate")),distance:(0,s.Opt)(t("distance_predicate"))},"minecraft:placed_block":{block:(0,s.Opt)(o({validator:"resource",params:{pool:"block"}})),state:(0,s.Opt)((0,s.MapNode)(o(),o(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:(0,s.Opt)(t("item_predicate")),location:(0,s.Opt)(t("location_predicate"))},"minecraft:player_generates_container_loot":{loot_table:o({validator:"resource",params:{pool:"$loot_table"}})},"minecraft:player_hurt_entity":{damage:(0,s.Opt)(t("damage_predicate")),entity:d},"minecraft:player_interacted_with_entity":{item:(0,s.Opt)(t("item_predicate")),entity:d},"minecraft:player_killed_entity":{entity:d,killing_blow:(0,s.Opt)(t("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:o({validator:"resource",params:{pool:"$recipe"}})},"minecraft:ride_entity_in_lava":{start_position:(0,s.Opt)(t("location_predicate")),distance:(0,s.Opt)(t("distance_predicate"))},"minecraft:slide_down_block":{block:(0,s.Opt)(o({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:(0,s.Opt)(t("item_predicate"))},"minecraft:summoned_entity":{entity:d},"minecraft:tame_animal":{entity:d},"minecraft:target_hit":{projectile:d,shooter:d,signal_strength:t("int_bounds")},"minecraft:thrown_item_picked_up_by_entity":{entity:d,item:(0,s.Opt)(t("item_predicate"))},"minecraft:thrown_item_picked_up_by_player":{entity:d,item:(0,s.Opt)(t("item_predicate"))},"minecraft:used_ender_eye":{distance:(0,s.Opt)(t("float_bounds"))},"minecraft:used_totem":{item:(0,s.Opt)(t("item_predicate"))},"minecraft:using_item":{item:(0,s.Opt)(t("item_predicate"))},"minecraft:villager_trade":{villager:d,item:(0,s.Opt)(t("item_predicate"))}}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))}me.initAdvancementSchemas=it;var _e={},ue={};Object.defineProperty(ue,"__esModule",{value:!0});ue.initModelSchemas=void 0;const N=k;function nt(r,e){N.Reference.bind(void 0,r);const t=N.StringNode.bind(void 0,e),o=(n,c,l)=>(0,N.ListNode)((0,N.NumberNode)({min:c,max:l}),{minLength:n,maxLength:n}),d=(0,N.ChoiceNode)([{type:"alias",match:n=>typeof n=="string"&&n.startsWith("#"),node:t(),change:n=>typeof n=="string"?`#${n}`:"#0"},{type:"reference",match:n=>typeof n=="string",node:t({validator:"resource",params:{pool:"$texture"}}),change:n=>typeof n=="string"?n.replace(/^#/,""):""}],{choiceContext:"texture"});r.register("model",(0,N.Mod)((0,N.ObjectNode)({parent:(0,N.Opt)(t({validator:"resource",params:{pool:"$model"}})),ambientocclusion:(0,N.Opt)((0,N.BooleanNode)()),gui_light:(0,N.Opt)(t({enum:"gui_light"})),textures:(0,N.Opt)((0,N.MapNode)(t(),d)),elements:(0,N.Opt)((0,N.ListNode)((0,N.ObjectNode)({from:o(3,-16,32),to:o(3,-16,32),rotation:(0,N.Opt)((0,N.ObjectNode)({origin:o(3),axis:t({enum:"axis"}),angle:(0,N.NumberEnum)({values:[-45,-22.5,0,22.5,45]}),rescale:(0,N.Opt)((0,N.BooleanNode)())})),shade:(0,N.Opt)((0,N.BooleanNode)()),faces:(0,N.MapNode)(t({enum:"direction"}),(0,N.ObjectNode)({texture:d,uv:(0,N.Opt)(o(4)),cullface:(0,N.Opt)(t({enum:"direction"})),rotation:(0,N.Opt)((0,N.NumberNode)({integer:!0})),tintindex:(0,N.Opt)((0,N.NumberNode)({integer:!0}))}))},{context:"model_element"}))),display:(0,N.Opt)((0,N.MapNode)(t({enum:"display_position"}),(0,N.ObjectNode)({rotation:o(3),translation:o(3,-80,80),scale:o(3,-4,4)},{context:"item_transform"}))),overrides:(0,N.Opt)((0,N.ListNode)((0,N.ObjectNode)({predicate:(0,N.MapNode)(t({enum:"item_model_predicates"}),(0,N.NumberNode)()),model:t({validator:"resource",params:{pool:"$model"}})},{context:"model_override"})))},{context:"model"}),{default:()=>({parent:"minecraft:item/generated",textures:{layer0:"minecraft:item/diamond"}})}))}ue.initModelSchemas=nt;var pe={};Object.defineProperty(pe,"__esModule",{value:!0});pe.initBlockDefinitionSchemas=void 0;const S=k;function at(r,e){const t=S.Reference.bind(void 0,r),o=S.StringNode.bind(void 0,e);r.register("block_definition",(0,S.Mod)((0,S.ChoiceNode)([{type:"variants",match:n=>n.variants!==void 0,node:(0,S.ObjectNode)({variants:(0,S.MapNode)(o(),t("model_variant"))}),change:n=>({variants:{"":{}}})},{type:"multipart",match:n=>n.multipart!==void 0,node:(0,S.ObjectNode)({multipart:(0,S.ListNode)((0,S.ObjectNode)({when:(0,S.Opt)(t("multipart_condition")),apply:t("model_variant")}))}),change:n=>({multipart:{when:{},apply:{}}})}],{context:"block_definition"}),{default:()=>({variants:{"":{model:"minecraft:block/stone"}}})}));const d={model:o({validator:"resource",params:{pool:"$model"}}),x:(0,S.Opt)((0,S.NumberEnum)({integer:!0,values:[0,90,180,270]})),y:(0,S.Opt)((0,S.NumberEnum)({integer:!0,values:[0,90,180,270]})),uvlock:(0,S.Opt)((0,S.BooleanNode)())};r.register("model_variant",(0,S.ChoiceNode)([{type:"object",node:(0,S.ObjectNode)(d),change:n=>Array.isArray(n)&&n.length>0?n[0]:{}},{type:"list",node:(0,S.ListNode)((0,S.ObjectNode)(W(g({},d),{weight:(0,S.Opt)((0,S.NumberNode)({integer:!0,min:1}))}),{context:"model_variant"})),change:n=>[g({weight:1},n)]}],{context:"model_variant"})),r.register("multipart_condition",(0,S.ChoiceNode)([{type:"object",priority:-1,match:()=>!0,node:(0,S.MapNode)(o(),o()),change:n=>typeof n=="object"&&Array.isArray(n==null?void 0:n.OR)&&n.OR.length>0?n.OR[0]:{}},{type:"or",match:n=>typeof n=="object"&&(n==null?void 0:n.OR)!==void 0,node:(0,S.ObjectNode)({OR:(0,S.ListNode)(t("multipart_condition"))}),change:n=>({OR:[n!=null?n:{}]})}],{context:"multipart_condition"}))}pe.initBlockDefinitionSchemas=at;var fe={};Object.defineProperty(fe,"__esModule",{value:!0});fe.initFontSchemas=void 0;const M=k;function ct(r,e){const t=M.Reference.bind(void 0,r),o=M.StringNode.bind(void 0,e);r.register("font",(0,M.ObjectNode)({providers:(0,M.ListNode)(t("glyph_provider"))},{context:"font"})),r.register("glyph_provider",(0,M.Mod)((0,M.ObjectNode)({type:o({enum:"glyph_provider_type"}),[M.Switch]:[{push:"type"}],[M.Case]:{bitmap:{file:o({validator:"resource",params:{pool:"$texture",suffix:".png"}}),height:(0,M.Opt)((0,M.NumberNode)({integer:!0})),ascent:(0,M.NumberNode)({integer:!0}),chars:(0,M.ListNode)(o(),{minLength:1})},ttf:{file:o({validator:"resource",params:{pool:"$texture",suffix:".png"}}),size:(0,M.Opt)((0,M.NumberNode)()),oversample:(0,M.Opt)((0,M.NumberNode)()),shift:(0,M.Opt)((0,M.ListNode)((0,M.NumberNode)(),{minLength:2,maxLength:2})),skip:(0,M.Opt)((0,M.StringOrList)(o()))},space:{advances:(0,M.MapNode)(o(),(0,M.NumberNode)())},legacy_unicode:{sizes:o(),template:o()}}},{context:"glyph_provider"}),{default:()=>({type:"bitmap"})}))}fe.initFontSchemas=ct;Object.defineProperty(_e,"__esModule",{value:!0});_e.initAssetsSchemas=void 0;const dt=ue,st=pe,lt=fe;function mt(r,e){(0,st.initBlockDefinitionSchemas)(r,e),(0,lt.initFontSchemas)(r,e),(0,dt.initModelSchemas)(r,e)}_e.initAssetsSchemas=mt;var ge={};Object.defineProperty(ge,"__esModule",{value:!0});ge.initChatTypeSchemas=void 0;const Y=k;function _t(r,e){const t=Y.Reference.bind(void 0,r),o=Y.StringNode.bind(void 0,e);r.register("chat_type",(0,Y.Mod)((0,Y.ObjectNode)({chat:t("text_decoration"),narration:t("text_decoration")},{context:"chat_type"}),{default:()=>({chat:{translation_key:"chat.type.text",parameters:["sender","content"]},narration:{translation_key:"chat.type.text.narrate",parameters:["sender","content"]}})})),r.register("text_decoration",(0,Y.Mod)((0,Y.ObjectNode)({translation_key:o(),parameters:(0,Y.ListNode)(o({enum:["sender","target","content"]})),style:(0,Y.Opt)(t("text_style"))},{context:"text_decoration"}),{default:()=>({translation_key:"chat.type.text",parameters:["sender","content"],style:{}})}))}ge.initChatTypeSchemas=_t;var R={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.initCommonSchemas=r.Tag=r.InclusiveRange=r.IntProvider=r.FloatProvider=r.NoiseSettingsPresets=r.DefaultNoiseSettings=r.FunctionCases=r.ConditionCases=void 0;const e=k;r.DefaultNoiseSettings={sea_level:63,ore_veins_enabled:!0,disable_mob_generation:!1,aquifers_enabled:!0,legacy_random_source:!1,default_block:{Name:"minecraft:stone"},default_fluid:{Properties:{level:"0"},Name:"minecraft:water"},noise:{min_y:-64,height:384,size_horizontal:1,size_vertical:2,top_slide:{target:-.078125,size:2,offset:8},bottom_slide:{target:.1171875,size:3,offset:0},sampling:{xz_scale:.9999999814507745,y_scale:.9999999814507745,xz_factor:80,y_factor:160},terrain_shaper:{offset:0,factor:0,jaggedness:0}},noise_router:{barrier:0,fluid_level_floodedness:0,fluid_level_spread:0,lava:0,temperature:0,vegetation:0,continents:0,erosion:0,depth:0,ridges:0,initial_density_without_jaggedness:0,final_density:{type:"minecraft:interpolated",argument:"minecraft:overworld/base_3d_noise"},vein_toggle:0,vein_ridged:0,vein_gap:0},surface_rule:{type:"minecraft:sequence",sequence:[]}};function t(o,d){const n=e.StringNode.bind(void 0,d),c=e.Reference.bind(void 0,o);o.register("block_state",(0,e.Mod)((0,e.ObjectNode)({Name:n({validator:"resource",params:{pool:"block"}}),Properties:(0,e.Opt)((0,e.MapNode)(n(),n(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"Name"}]}}}))},{context:"block_state"}),{default:()=>({Name:"minecraft:stone"})})),o.register("fluid_state",(0,e.Mod)((0,e.ObjectNode)({Name:n({validator:"resource",params:{pool:"fluid"}}),Properties:(0,e.Opt)((0,e.MapNode)(n(),n()))},{context:"fluid_state"}),{default:()=>({Name:"minecraft:water",Properties:{level:"0"}})})),o.register("block_pos",(0,e.Mod)((0,e.ListNode)((0,e.NumberNode)({integer:!0}),{minLength:3,maxLength:3}),{default:()=>[0,0,0]}));const l=_=>(0,e.Opt)((0,e.ChoiceNode)([{type:"number",node:(0,e.NumberNode)({integer:_}),change:b=>{var j,y;return b===void 0?0:(y=(j=b.min)!==null&&j!==void 0?j:b.max)!==null&&y!==void 0?y:0}},{type:"object",node:(0,e.ObjectNode)({min:(0,e.Opt)((0,e.NumberNode)({integer:_})),max:(0,e.Opt)((0,e.NumberNode)({integer:_}))},{context:"range"}),change:b=>({min:b!=null?b:0,max:b!=null?b:0})}]));o.register("int_bounds",l(!0)),o.register("float_bounds",l()),o.register("int_range",(0,e.ChoiceNode)([{type:"object",node:(0,e.ObjectNode)({min:(0,e.Opt)(c("number_provider")),max:(0,e.Opt)(c("number_provider"))})},{type:"number",node:(0,e.NumberNode)({integer:!0})}],{context:"range"}));const v=(_,b,j,y,F,z,U)=>{let ce={};F&&Object.keys(U[F]).forEach(A=>{ce[A]=(0,e.Mod)(U[F][A],{enabled:E=>E.push("type").get()===void 0})});const ee=(0,e.ObjectNode)(g({type:(0,e.Mod)((0,e.Opt)(n({validator:"resource",params:{pool:_}})),{hidden:()=>!0}),[e.Switch]:[{push:"type"}],[e.Case]:U},ce),{context:z,disableSwitchContext:!0}),te=[{type:b,node:U[y][j]}];return F&&te.push({type:"object",priority:-1,node:ee}),Object.keys(U).forEach(A=>{te.push({type:A,match:E=>{var re;if("minecraft:"+((re=E==null?void 0:E.type)===null||re===void 0?void 0:re.replace(/^minecraft:/,""))===A)return!0;const V=E?Object.keys(E):[];return typeof E=="object"&&((V==null?void 0:V.length)===0||(V==null?void 0:V.length)===1&&(V==null?void 0:V[0])==="type")},node:ee,change:E=>({type:A})})}),(0,e.ChoiceNode)(te,{context:z,choiceContext:`${z}.type`})};o.register("number_provider",v("loot_number_provider_type","number","value","minecraft:constant","minecraft:uniform","number_provider",{"minecraft:constant":{value:(0,e.NumberNode)()},"minecraft:uniform":{min:c("number_provider"),max:c("number_provider")},"minecraft:binomial":{n:c("number_provider"),p:c("number_provider")},"minecraft:score":{target:c("scoreboard_name_provider"),score:n({validator:"objective"}),scale:(0,e.Opt)((0,e.NumberNode)())}})),o.register("scoreboard_name_provider",v("loot_score_provider_type","string","target","minecraft:context",null,"score_provider",{"minecraft:fixed":{name:n({validator:"entity",params:{amount:"multiple",type:"entities",isScoreHolder:!0}})},"minecraft:context":{target:(0,e.Mod)(n({enum:"entity_source"}),{default:()=>"this"})}})),o.register("nbt_provider",v("loot_nbt_provider_type","string","target","minecraft:context",null,"nbt_provider",{"minecraft:storage":{source:n({validator:"resource",params:{pool:"$storage"}})},"minecraft:context":{target:(0,e.Mod)(n({enum:"copy_source"}),{default:()=>"this"})}})),r.FloatProvider=_=>v("float_provider_type","number","value","minecraft:constant",null,"float_provider",{"minecraft:constant":{value:(0,e.NumberNode)(_)},"minecraft:uniform":{value:(0,e.ObjectNode)({min_inclusive:(0,e.NumberNode)(_),max_exclusive:(0,e.NumberNode)(_)})},"minecraft:clamped_normal":{value:(0,e.ObjectNode)({min:(0,e.NumberNode)(),max:(0,e.NumberNode)(),mean:(0,e.NumberNode)(),deviation:(0,e.NumberNode)()})},"minecraft:trapezoid":{value:(0,e.ObjectNode)({min:(0,e.NumberNode)(),max:(0,e.NumberNode)(),plateau:(0,e.NumberNode)()})}}),o.register("float_provider",(0,r.FloatProvider)()),r.IntProvider=_=>v("int_provider_type","number","value","minecraft:constant",null,"int_provider",{"minecraft:constant":{value:(0,e.NumberNode)(g({integer:!0},_))},"minecraft:uniform":{value:(0,e.ObjectNode)({min_inclusive:(0,e.NumberNode)(g({integer:!0},_)),max_inclusive:(0,e.NumberNode)(g({integer:!0},_))})},"minecraft:biased_to_bottom":{value:(0,e.ObjectNode)({min_inclusive:(0,e.NumberNode)(g({integer:!0},_)),max_inclusive:(0,e.NumberNode)(g({integer:!0},_))})},"minecraft:clamped":{value:(0,e.ObjectNode)({min_inclusive:(0,e.NumberNode)(g({integer:!0},_)),max_inclusive:(0,e.NumberNode)(g({integer:!0},_)),source:c("int_provider")})},"minecraft:clamped_normal":{value:(0,e.ObjectNode)({min_inclusive:(0,e.NumberNode)(g({integer:!0},_)),max_inclusive:(0,e.NumberNode)(g({integer:!0},_)),mean:(0,e.NumberNode)(),deviation:(0,e.NumberNode)()})},"minecraft:weighted_list":{distribution:(0,e.ListNode)((0,e.ObjectNode)({weight:(0,e.NumberNode)({integer:!0}),data:c("int_provider")}))}}),o.register("int_provider",(0,r.IntProvider)()),o.register("vertical_anchor",(0,e.ChoiceNode)(["absolute","above_bottom","below_top"].map(_=>({type:_,match:b=>(b==null?void 0:b[_])!==void 0,change:b=>{var j,y,F;return{[_]:(F=(y=(j=b.absolute)!==null&&j!==void 0?j:b.above_bottom)!==null&&y!==void 0?y:b.below_top)!==null&&F!==void 0?F:0}},node:(0,e.ObjectNode)({[_]:(0,e.NumberNode)({integer:!0,min:-2048,max:2047})})})),{context:"vertical_anchor"})),o.register("height_provider",v("height_provider_type","number","value","minecraft:constant",null,"height_provider",{"minecraft:constant":{value:c("vertical_anchor")},"minecraft:uniform":{min_inclusive:c("vertical_anchor"),max_inclusive:c("vertical_anchor")},"minecraft:biased_to_bottom":{min_inclusive:c("vertical_anchor"),max_inclusive:c("vertical_anchor"),inner:(0,e.Opt)((0,e.NumberNode)({integer:!0,min:1}))},"minecraft:very_biased_to_bottom":{min_inclusive:c("vertical_anchor"),max_inclusive:c("vertical_anchor"),inner:(0,e.Opt)((0,e.NumberNode)({integer:!0,min:1}))},"minecraft:trapezoid":{min_inclusive:c("vertical_anchor"),max_inclusive:c("vertical_anchor"),plateau:(0,e.Opt)((0,e.NumberNode)({integer:!0}))},"minecraft:weighted_list":{distribution:(0,e.ListNode)((0,e.ObjectNode)({weight:(0,e.NumberNode)({integer:!0}),data:c("int_provider")}))}})),r.InclusiveRange=_=>(0,e.ObjectNode)({min_inclusive:(0,e.NumberNode)(_),max_inclusive:(0,e.NumberNode)(_)},{context:"range"}),o.register("noise_parameters",(0,e.Mod)((0,e.ObjectNode)({firstOctave:(0,e.NumberNode)({integer:!0}),amplitudes:(0,e.ListNode)((0,e.NumberNode)())},{context:"noise_parameters"}),{default:()=>({firstOctave:-7,amplitudes:[1,1]})})),r.Tag=_=>(0,e.ChoiceNode)([{type:"string",node:n({validator:"resource",params:{pool:_.resource,allowTag:!0}}),change:b=>{if(Array.isArray(b)&&typeof b[0]=="string"&&!b[0].startsWith("#"))return b[0]}},{type:"list",node:(0,e.ListNode)(_.inlineSchema?(0,e.ChoiceNode)([{type:"string",node:n({validator:"resource",params:{pool:_.resource}})},{type:"object",node:c(_.inlineSchema)}],{choiceContext:"tag.list"}):n({validator:"resource",params:{pool:_.resource}})),change:b=>typeof b=="string"&&!b.startsWith("#")?[b]:[]}],{choiceContext:"tag"}),r.ConditionCases=(_=n({enum:"entity_source"}))=>({"minecraft:alternative":{terms:(0,e.ListNode)(c("condition"))},"minecraft:block_state_property":{block:n({validator:"resource",params:{pool:"block"}}),properties:(0,e.MapNode)(n(),n(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})},"minecraft:damage_source_properties":{predicate:c("damage_source_predicate")},"minecraft:entity_properties":{entity:_,predicate:c("entity_predicate")},"minecraft:entity_scores":{entity:_,scores:(0,e.MapNode)(n({validator:"objective"}),c("int_range"))},"minecraft:inverted":{term:c("condition")},"minecraft:killed_by_player":{inverse:(0,e.Opt)((0,e.BooleanNode)())},"minecraft:location_check":{offsetX:(0,e.Opt)((0,e.NumberNode)({integer:!0})),offsetY:(0,e.Opt)((0,e.NumberNode)({integer:!0})),offsetZ:(0,e.Opt)((0,e.NumberNode)({integer:!0})),predicate:c("location_predicate")},"minecraft:match_tool":{predicate:c("item_predicate")},"minecraft:random_chance":{chance:(0,e.NumberNode)({min:0,max:1})},"minecraft:random_chance_with_looting":{chance:(0,e.NumberNode)({min:0,max:1}),looting_multiplier:(0,e.NumberNode)()},"minecraft:reference":{name:n({validator:"resource",params:{pool:"$predicate"}})},"minecraft:table_bonus":{enchantment:n({validator:"resource",params:{pool:"enchantment"}}),chances:(0,e.ListNode)((0,e.NumberNode)({min:0,max:1}))},"minecraft:time_check":{value:c("int_range"),period:(0,e.Opt)((0,e.NumberNode)({integer:!0}))},"minecraft:value_check":{value:c("number_provider"),range:c("int_range")},"minecraft:weather_check":{raining:(0,e.Opt)((0,e.BooleanNode)()),thundering:(0,e.Opt)((0,e.BooleanNode)())}}),r.FunctionCases=(_,b=n({enum:"copy_source"}),j=n({enum:"entity_source"}))=>{const y={"minecraft:apply_bonus":{enchantment:n({validator:"resource",params:{pool:"enchantment"}}),formula:n({validator:"resource",params:{pool:d.get("loot_table_apply_bonus_formula")}}),parameters:(0,e.Mod)((0,e.ObjectNode)({bonusMultiplier:(0,e.Mod)((0,e.NumberNode)(),{enabled:z=>z.pop().push("formula").get()==="minecraft:uniform_bonus_count"}),extra:(0,e.Mod)((0,e.NumberNode)(),{enabled:z=>z.pop().push("formula").get()==="minecraft:binomial_with_bonus_count"}),probability:(0,e.Mod)((0,e.NumberNode)(),{enabled:z=>z.pop().push("formula").get()==="minecraft:binomial_with_bonus_count"})}),{enabled:z=>z.push("formula").get()!=="minecraft:ore_drops"})},"minecraft:copy_name":{source:b},"minecraft:copy_nbt":{source:c("nbt_provider"),ops:(0,e.ListNode)((0,e.ObjectNode)({source:n({validator:"nbt_path",params:{category:{getter:"copy_source",path:["pop","pop","pop",{push:"source"}]}}}),target:n({validator:"nbt_path",params:{category:"minecraft:item"}}),op:n({enum:["replace","append","merge"]})},{context:"nbt_operation"}))},"minecraft:copy_state":{block:n({validator:"resource",params:{pool:"block"}}),properties:(0,e.ListNode)(n({validator:"block_state_key",params:{id:["pop","pop",{push:"block"}]}}))},"minecraft:enchant_randomly":{enchantments:(0,e.Opt)((0,e.ListNode)(n({validator:"resource",params:{pool:"enchantment"}})))},"minecraft:enchant_with_levels":{levels:c("number_provider"),treasure:(0,e.Opt)((0,e.BooleanNode)())},"minecraft:exploration_map":{destination:(0,e.Opt)((0,r.Tag)({resource:"$worldgen/structure"})),decoration:(0,e.Opt)(n({enum:"map_decoration"})),zoom:(0,e.Opt)((0,e.NumberNode)({integer:!0})),search_radius:(0,e.Opt)((0,e.NumberNode)({integer:!0})),skip_existing_chunks:(0,e.Opt)((0,e.BooleanNode)())},"minecraft:fill_player_head":{entity:j},"minecraft:limit_count":{limit:c("int_range")},"minecraft:looting_enchant":{count:c("number_provider"),limit:(0,e.Opt)((0,e.NumberNode)({integer:!0}))},"minecraft:set_attributes":{modifiers:(0,e.ListNode)(c("attribute_modifier"))},"minecraft:set_banner_pattern":{patterns:(0,e.ListNode)((0,e.ObjectNode)({pattern:n({enum:"banner_pattern"}),color:n({enum:"dye_color"})})),append:(0,e.Opt)((0,e.BooleanNode)())},"minecraft:set_contents":{type:n({validator:"resource",params:{pool:"block_entity_type"}}),entries:(0,e.ListNode)(c("loot_entry"))},"minecraft:set_count":{count:c("number_provider"),add:(0,e.Opt)((0,e.BooleanNode)())},"minecraft:set_damage":{damage:c("number_provider"),add:(0,e.Opt)((0,e.BooleanNode)())},"minecraft:set_enchantments":{enchantments:(0,e.MapNode)(n({validator:"resource",params:{pool:"enchantment"}}),c("number_provider")),add:(0,e.Opt)((0,e.BooleanNode)())},"minecraft:set_instrument":{options:n({validator:"resource",params:{pool:"instrument",requireTag:!0}})},"minecraft:set_loot_table":{type:n({validator:"resource",params:{pool:"block_entity_type"}}),name:n({validator:"resource",params:{pool:"$loot_table"}}),seed:(0,e.Opt)((0,e.NumberNode)({integer:!0}))},"minecraft:set_lore":{entity:(0,e.Opt)(j),lore:(0,e.ListNode)(c("text_component")),replace:(0,e.Opt)((0,e.BooleanNode)())},"minecraft:set_name":{entity:(0,e.Opt)(j),name:(0,e.Opt)(c("text_component"))},"minecraft:set_nbt":{tag:n({validator:"nbt",params:{registry:{category:"minecraft:item"}}})},"minecraft:set_potion":{id:n({validator:"resource",params:{pool:"potion"}})},"minecraft:set_stew_effect":{effects:(0,e.Opt)((0,e.ListNode)((0,e.ObjectNode)({type:n({validator:"resource",params:{pool:"mob_effect"}}),duration:c("number_provider")})))}},F={};return d.get("loot_function_type").forEach(z=>{F[z]=g(g({},y[z]),_)}),F},r.NoiseSettingsPresets=_=>(0,e.ObjectOrPreset)(n({validator:"resource",params:{pool:"$worldgen/noise_settings"}}),_,{"minecraft:overworld":r.DefaultNoiseSettings,"minecraft:nether":{sea_level:32,ore_veins_enabled:!1,disable_mob_generation:!1,aquifers_enabled:!1,legacy_random_source:!0,default_block:{Name:"minecraft:netherrack"},default_fluid:{Properties:{level:"0"},Name:"minecraft:lava"},noise:{min_y:0,height:128,size_horizontal:1,size_vertical:2,top_slide:{target:.9375,size:3,offset:0},bottom_slide:{target:2.5,size:4,offset:-1},sampling:{xz_scale:1,y_scale:3,xz_factor:80,y_factor:60},terrain_shaper:{offset:0,factor:0,jaggedness:0}},noise_router:{barrier:0,fluid_level_floodedness:0,fluid_level_spread:0,lava:0,temperature:0,vegetation:0,continents:0,erosion:0,depth:0,ridges:0,initial_density_without_jaggedness:0,final_density:{type:"minecraft:interpolated",argument:"minecraft:overworld/base_3d_noise"},vein_toggle:0,vein_ridged:0,vein_gap:0},surface_rule:{type:"minecraft:sequence",sequence:[]}},"minecraft:end":{sea_level:0,ore_veins_enabled:!1,disable_mob_generation:!1,aquifers_enabled:!1,legacy_random_source:!0,default_block:{Name:"minecraft:end_stone"},default_fluid:{Name:"minecraft:air"},noise:{min_y:0,height:128,size_horizontal:2,size_vertical:1,top_slide:{target:-23.4375,size:64,offset:-46},bottom_slide:{target:-.234375,size:7,offset:1},sampling:{xz_scale:2,y_scale:1,xz_factor:80,y_factor:160},terrain_shaper:{offset:0,factor:1,jaggedness:0}},noise_router:{barrier:0,fluid_level_floodedness:0,fluid_level_spread:0,lava:0,temperature:0,vegetation:0,continents:0,erosion:0,depth:0,ridges:0,initial_density_without_jaggedness:0,final_density:{type:"minecraft:interpolated",argument:"minecraft:overworld/base_3d_noise"},vein_toggle:0,vein_ridged:0,vein_gap:0},surface_rule:{type:"minecraft:sequence",sequence:[]}},"minecraft:amplified":{sea_level:63,ore_veins_enabled:!0,disable_mob_generation:!1,aquifers_enabled:!0,legacy_random_source:!1,default_block:{Name:"minecraft:stone"},default_fluid:{Properties:{level:"0"},Name:"minecraft:water"},noise:{min_y:-64,height:384,size_horizontal:1,size_vertical:2,top_slide:{target:-.078125,size:2,offset:8},bottom_slide:{target:.1171875,size:3,offset:0},sampling:{xz_scale:.9999999814507745,y_scale:.9999999814507745,xz_factor:80,y_factor:160},terrain_shaper:{offset:0,factor:0,jaggedness:0}},noise_router:{barrier:0,fluid_level_floodedness:0,fluid_level_spread:0,lava:0,temperature:0,vegetation:0,continents:0,erosion:0,depth:0,ridges:0,initial_density_without_jaggedness:0,final_density:{type:"minecraft:interpolated",argument:"minecraft:overworld/base_3d_noise"},vein_toggle:0,vein_ridged:0,vein_gap:0},surface_rule:{type:"minecraft:sequence",sequence:[]}},"minecraft:caves":{sea_level:32,ore_veins_enabled:!1,disable_mob_generation:!1,aquifers_enabled:!1,legacy_random_source:!0,default_block:{Name:"minecraft:stone"},default_fluid:{Properties:{level:"0"},Name:"minecraft:water"},noise:{min_y:0,height:128,size_horizontal:1,size_vertical:2,top_slide:{target:.9375,size:3,offset:0},bottom_slide:{target:2.5,size:4,offset:-1},sampling:{xz_scale:1,y_scale:3,xz_factor:80,y_factor:60},terrain_shaper:{offset:0,factor:0,jaggedness:0}},noise_router:{barrier:0,fluid_level_floodedness:0,fluid_level_spread:0,lava:0,temperature:0,vegetation:0,continents:0,erosion:0,depth:0,ridges:0,initial_density_without_jaggedness:0,final_density:{type:"minecraft:interpolated",argument:"minecraft:overworld/base_3d_noise"},vein_toggle:0,vein_ridged:0,vein_gap:0},surface_rule:{type:"minecraft:sequence",sequence:[]}},"minecraft:floating_islands":{sea_level:0,ore_veins_enabled:!1,disable_mob_generation:!1,aquifers_enabled:!1,legacy_random_source:!0,default_block:{Name:"minecraft:stone"},default_fluid:{Properties:{level:"0"},Name:"minecraft:water"},noise:{min_y:0,height:128,size_horizontal:2,size_vertical:1,top_slide:{target:-23.4375,size:64,offset:-46},bottom_slide:{target:-.234375,size:7,offset:1},sampling:{xz_scale:2,y_scale:1,xz_factor:80,y_factor:160},terrain_shaper:{offset:0,factor:1,jaggedness:0}},noise_router:{barrier:0,fluid_level_floodedness:0,fluid_level_spread:0,lava:0,temperature:0,vegetation:0,continents:0,erosion:0,depth:0,ridges:0,initial_density_without_jaggedness:0,final_density:{type:"minecraft:interpolated",argument:"minecraft:overworld/base_3d_noise"},vein_toggle:0,vein_ridged:0,vein_gap:0},surface_rule:{type:"minecraft:sequence",sequence:[]}}})}r.initCommonSchemas=t})(R);var be={};Object.defineProperty(be,"__esModule",{value:!0});be.initConditionSchemas=void 0;const oe=k,ut=R;function pt(r,e){const t=oe.Reference.bind(void 0,r),o=oe.StringNode.bind(void 0,e);r.register("predicate",(0,oe.ObjectOrList)(t("condition"),{choiceContext:"condition"})),r.register("condition",(0,oe.Mod)((0,oe.ObjectNode)({condition:o({validator:"resource",params:{pool:"loot_condition_type"}}),[oe.Switch]:[{push:"condition"}],[oe.Case]:(0,ut.ConditionCases)()},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))}be.initConditionSchemas=pt;var Ne={};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.initDimensionSchemas=void 0;const O=k,Te=R;function ft(r,e){const t=O.Reference.bind(void 0,r),o=O.StringNode.bind(void 0,e);r.register("dimension",(0,O.Mod)((0,O.ObjectNode)({type:o({validator:"resource",params:{pool:"$dimension_type"}}),generator:(0,O.ObjectNode)({type:o({validator:"resource",params:{pool:"worldgen/chunk_generator"}}),[O.Switch]:[{push:"type"}],[O.Case]:{"minecraft:noise":{settings:(0,Te.NoiseSettingsPresets)(t("noise_settings")),biome_source:(0,O.ObjectNode)({type:o({validator:"resource",params:{pool:"worldgen/biome_source"}}),[O.Switch]:[{push:"type"}],[O.Case]:{"minecraft:fixed":{biome:o({validator:"resource",params:{pool:"$worldgen/biome"}})},"minecraft:multi_noise":{preset:(0,O.Opt)(o({validator:"resource",params:{pool:["minecraft:overworld","minecraft:nether"]}})),biomes:(0,O.Mod)((0,O.ListNode)(t("generator_biome")),{enabled:n=>n.push("preset").get()===void 0,default:()=>[{biome:"minecraft:plains"}]})},"minecraft:checkerboard":{scale:(0,O.Opt)((0,O.NumberNode)({integer:!0,min:0,max:62})),biomes:(0,Te.Tag)({resource:"$worldgen/biome"})}}},{category:"predicate",disableSwitchContext:!0})},"minecraft:flat":{settings:t("flat_generator_settings")}}},{disableSwitchContext:!0})},{category:"pool",context:"dimension"}),{default:()=>({type:"minecraft:overworld",generator:{type:"minecraft:noise",biome_source:{type:"minecraft:fixed",biome:"minecraft:plains"},settings:"minecraft:overworld"}})})),r.register("flat_generator_settings",(0,O.ObjectNode)({biome:(0,O.Opt)(o({validator:"resource",params:{pool:"$worldgen/biome"}})),lakes:(0,O.Opt)((0,O.BooleanNode)()),features:(0,O.Opt)((0,O.BooleanNode)()),layers:(0,O.ListNode)(t("generator_layer")),structure_overrides:(0,Te.Tag)({resource:"$worldgen/structure_set",inlineSchema:"structure_set"})}));const d=(0,O.ChoiceNode)([{type:"number",node:(0,O.NumberNode)({min:-2,max:2}),change:n=>{var c;return(c=n[0])!==null&&c!==void 0?c:0}},{type:"list",node:(0,O.ListNode)((0,O.NumberNode)({min:-2,max:2}),{minLength:2,maxLength:2}),change:n=>[n!=null?n:0,n!=null?n:0]}]);r.register("parameter_point",(0,O.ObjectNode)({temperature:d,humidity:d,continentalness:d,erosion:d,weirdness:d,depth:d,offset:(0,O.NumberNode)({min:0,max:1})})),r.register("generator_biome",(0,O.Mod)((0,O.ObjectNode)({biome:o({validator:"resource",params:{pool:"$worldgen/biome"}}),parameters:t("parameter_point")},{context:"generator_biome"}),{default:()=>({biome:"minecraft:plains",parameters:{temperature:0,humidity:0,continentalness:0,erosion:0,weirdness:0,depth:0,offset:0}})}))}Ne.initDimensionSchemas=ft;var ye={};Object.defineProperty(ye,"__esModule",{value:!0});ye.initDimensionTypeSchemas=void 0;const L=k,gt=R;function bt(r,e){const t=L.StringNode.bind(void 0,e);r.register("dimension_type",(0,L.Mod)((0,L.ObjectNode)({ultrawarm:(0,L.BooleanNode)(),natural:(0,L.BooleanNode)(),piglin_safe:(0,L.BooleanNode)(),respawn_anchor_works:(0,L.BooleanNode)(),bed_works:(0,L.BooleanNode)(),has_raids:(0,L.BooleanNode)(),has_skylight:(0,L.BooleanNode)(),has_ceiling:(0,L.BooleanNode)(),coordinate_scale:(0,L.NumberNode)({min:1e-5,max:3e7}),ambient_light:(0,L.NumberNode)(),fixed_time:(0,L.Opt)((0,L.NumberNode)({integer:!0})),logical_height:(0,L.NumberNode)({integer:!0,min:0,max:4064}),effects:(0,L.Opt)(t({validator:"resource",params:{pool:["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]}})),infiniburn:t({validator:"resource",params:{pool:"block",requireTag:!0}}),min_y:(0,L.NumberNode)({integer:!0,min:-2032,max:2031}),height:(0,L.NumberNode)({integer:!0,min:16,max:4064}),monster_spawn_light_level:(0,gt.IntProvider)({min:0,max:15}),monster_spawn_block_light_limit:(0,L.NumberNode)({integer:!0,min:0,max:15})},{context:"dimension_type"}),o=>({default:()=>({ultrawarm:!1,natural:!0,piglin_safe:!1,respawn_anchor_works:!1,bed_works:!0,has_raids:!0,has_skylight:!0,has_ceiling:!1,coordinate_scale:1,ambient_light:0,logical_height:384,effects:"minecraft:overworld",infiniburn:"#minecraft:infiniburn_overworld",min_y:-64,height:384,monster_spawn_block_light_limit:0,monster_spawn_light_level:{type:"minecraft:uniform",value:{min_inclusive:0,max_inclusive:7}}}),validate:(d,n,c,l)=>(n=o.validate(d,n,c,l),(n==null?void 0:n.min_y)+(n==null?void 0:n.height)>2032&&c.add(d.push("height"),"error.min_y_plus_height",2032),(n==null?void 0:n.logical_height)>(n==null?void 0:n.height)&&c.add(d.push("logical_height"),"error.logical_height"),(n==null?void 0:n.height)%16!==0&&c.add(d.push("height"),"error.height_multiple",16),(n==null?void 0:n.min_y)%16!==0&&c.add(d.push("min_y"),"error.min_y_multiple",16),n)})))}ye.initDimensionTypeSchemas=bt;var he={};Object.defineProperty(he,"__esModule",{value:!0});he.initItemModifierSchemas=void 0;const G=k,Nt=R;function yt(r,e){const t=G.Reference.bind(void 0,r),o=G.StringNode.bind(void 0,e);r.register("item_modifier",(0,G.ObjectOrList)(t("function"),{choiceContext:"function"}));const d={conditions:(0,G.Opt)((0,G.ListNode)(t("condition")))};r.register("function",(0,G.Mod)((0,G.ObjectNode)({function:o({validator:"resource",params:{pool:"loot_function_type"}}),[G.Switch]:[{push:"function"}],[G.Case]:(0,Nt.FunctionCases)(d)},{category:"function",context:"function"}),{default:()=>[{function:"minecraft:set_count",count:1}]}))}he.initItemModifierSchemas=yt;var ve={},I={};Object.defineProperty(I,"__esModule",{value:!0});I.LootFunctions=I.LootConditions=I.LootCopySources=I.LootEntitySources=I.LootTableTypes=void 0;I.LootTableTypes=new Map([["minecraft:advancement_entity",{requires:[7,8],allows:[]}],["minecraft:advancement_reward",{requires:[7,8],allows:[]}],["minecraft:barter",{requires:[8],allows:[]}],["minecraft:block",{requires:[1,7,9],allows:[0,4,8]}],["minecraft:chest",{requires:[7],allows:[8]}],["minecraft:command",{requires:[7],allows:[8]}],["minecraft:empty",{requires:[],allows:[]}],["minecraft:entity",{requires:[2,7,8],allows:[3,5,6]}],["minecraft:fishing",{requires:[7,9],allows:[8]}],["minecraft:generic",{requires:[2,0,1,3,4,5,6,7,8,9],allows:[]}],["minecraft:gift",{requires:[7,8],allows:[]}],["minecraft:selector",{requires:[7],allows:[8]}]]);I.LootEntitySources=new Map([["direct_killer",[3]],["killer",[5]],["killer_player",[5]],["this",[8]]]);I.LootCopySources=new Map([["block_entity",[0]],["killer",[5]],["killer_player",[5]],["this",[8]]]);I.LootConditions=new Map([["minecraft:alternative",[]],["minecraft:block_state_property",[1]],["minecraft:damage_source_properties",[2]],["minecraft:entity_properties",[7]],["minecraft:entity_scores",[]],["minecraft:inverted",[]],["minecraft:killed_by_player",[6]],["minecraft:location_check",[]],["minecraft:match_tool",[9]],["minecraft:random_chance",[]],["minecraft:random_chance_with_looting",[5]],["minecraft:reference",[]],["minecraft:survives_explosion",[4]],["minecraft:table_bonus",[9]],["minecraft:time_check",[]],["minecraft:weather_check",[]]]);I.LootFunctions=new Map([["minecraft:apply_bonus",[9]],["minecraft:copy_name",[]],["minecraft:copy_nbt",[]],["minecraft:copy_state",[1]],["minecraft:enchant_randomly",[]],["minecraft:enchant_with_levels",[]],["minecraft:exploration_map",[7]],["minecraft:explosion_decay",[]],["minecraft:fill_player_head",[]],["minecraft:furnace_smelt",[]],["minecraft:limit_count",[]],["minecraft:looting_enchant",[5]],["minecraft:set_attributes",[]],["minecraft:set_banner_pattern",[]],["minecraft:set_contents",[]],["minecraft:set_count",[]],["minecraft:set_damage",[]],["minecraft:set_loot_table",[]],["minecraft:set_lore",[]],["minecraft:set_name",[]],["minecraft:set_nbt",[]],["minecraft:set_stew_effect",[]]]);Object.defineProperty(ve,"__esModule",{value:!0});ve.initLootTableSchemas=void 0;const p=k,ae=I,We=R;function ht(r,e){const t=p.Reference.bind(void 0,r),o=p.StringNode.bind(void 0,e),d={conditions:(0,p.Opt)((0,p.ListNode)(t("loot_condition")))},n=g({functions:(0,p.Opt)((0,p.ListNode)(t("loot_function")))},d);function c(y,F,z){const U=[],ce=ee=>e.get(F).filter(te=>{var A;return((A=y.get(te))!==null&&A!==void 0?A:[]).every(re=>ee.includes(re))});for(const[ee,{allows:te,requires:A}]of ae.LootTableTypes){const E=[...te,...A];U.push({match:re=>re.getModel().get(new p.Path(["type"]))===ee,node:z(ce(E))})}return U.push({match:ee=>!0,node:z(F)}),(0,p.SwitchNode)(U)}const l=c(ae.LootConditions,"loot_condition_type",y=>o({validator:"resource",params:{pool:y instanceof Array?y:"loot_condition_type"}})),v=c(ae.LootFunctions,"loot_function_type",y=>o({validator:"resource",params:{pool:y instanceof Array?y:"loot_function_type"}})),_=c(ae.LootEntitySources,"entity_source",y=>o({enum:y})),b=c(ae.LootCopySources,"copy_source",y=>o({enum:y}));r.register("loot_table",(0,p.Mod)((0,p.ObjectNode)({type:(0,p.Opt)(o({validator:"resource",params:{pool:e.get("loot_context_type")}})),pools:(0,p.Opt)((0,p.ListNode)((0,p.Mod)((0,p.ObjectNode)(g({rolls:t("number_provider"),bonus_rolls:(0,p.Opt)(t("number_provider")),entries:(0,p.ListNode)(t("loot_entry"))},n),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:(0,p.Opt)((0,p.ListNode)(t("loot_function")))},{context:"loot_table"}),{default:()=>({pools:[{rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]}]})}));const j={enabled:y=>{var F;return((F=y.pop().get())===null||F===void 0?void 0:F.length)>1&&!["minecraft:alternatives","minecraft:group","minecraft:sequence"].includes(y.push("type").get())}};r.register("loot_entry",(0,p.Mod)((0,p.ObjectNode)({type:o({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:(0,p.Opt)((0,p.Mod)((0,p.NumberNode)({integer:!0,min:1}),j)),quality:(0,p.Opt)((0,p.Mod)((0,p.NumberNode)({integer:!0}),j)),[p.Switch]:[{push:"type"}],[p.Case]:{"minecraft:alternatives":g({children:(0,p.ListNode)(t("loot_entry"))},n),"minecraft:dynamic":g({name:o()},n),"minecraft:group":g({children:(0,p.ListNode)(t("loot_entry"))},n),"minecraft:item":g({name:o({validator:"resource",params:{pool:"item"}})},n),"minecraft:loot_table":g({name:o({validator:"resource",params:{pool:"$loot_table"}})},n),"minecraft:sequence":g({children:(0,p.ListNode)(t("loot_entry"))},n),"minecraft:tag":g({name:o({validator:"resource",params:{pool:"$tag/item"}}),expand:(0,p.Opt)((0,p.BooleanNode)())},n)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),r.register("loot_function",(0,p.Mod)((0,p.ObjectNode)({function:v,[p.Switch]:[{push:"function"}],[p.Case]:(0,We.FunctionCases)(d,b,_)},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),r.register("loot_condition",(0,p.Mod)((0,p.ObjectNode)({condition:l,[p.Switch]:[{push:"condition"}],[p.Case]:(0,We.ConditionCases)(_)},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),r.register("attribute_modifier",(0,p.Mod)((0,p.ObjectNode)({attribute:o({validator:"resource",params:{pool:"attribute"}}),name:o(),amount:t("number_provider"),operation:o({enum:["addition","multiply_base","multiply_total"]}),id:(0,p.Opt)(o({validator:"uuid"})),slot:(0,p.StringOrList)(o({enum:"slot"}))},{context:"attribute_modifier"}),{default:()=>({attribute:"minecraft:generic.max_health",name:"",amount:1,operation:"addition",slot:"mainhand"})}))}ve.initLootTableSchemas=ht;var Oe={};Object.defineProperty(Oe,"__esModule",{value:!0});Oe.initPackMcmetaSchemas=void 0;const T=k,Z=10;function vt(r,e){const t=T.Reference.bind(void 0,r),o=T.StringNode.bind(void 0,e);r.register("pack_mcmeta",(0,T.Mod)((0,T.ObjectNode)({pack:(0,T.Mod)((0,T.ObjectNode)({pack_format:(0,T.Mod)((0,T.NumberNode)({integer:!0,min:Z,max:Z}),{default:()=>Z,canUpdate:(d,n)=>n!==Z,update:()=>[{name:"pack_format",params:[Z],newValue:Z}]}),description:t("text_component")}),{default:()=>({pack_format:Z,description:""})}),filter:(0,T.Opt)((0,T.ObjectNode)({block:(0,T.ListNode)((0,T.ObjectNode)({namespace:(0,T.Opt)(o({validator:"regex_pattern"})),path:(0,T.Opt)(o({validator:"regex_pattern"}))}))}))}),{default:()=>({pack:{pack_format:Z,description:""}})}))}Oe.initPackMcmetaSchemas=vt;var ke={};Object.defineProperty(ke,"__esModule",{value:!0});ke.initPredicatesSchemas=void 0;const a=k;function Ot(r,e){const t=a.Reference.bind(void 0,r),o=a.StringNode.bind(void 0,e),d=(0,a.ChoiceNode)([{type:"string",node:o(),change:n=>typeof n=="boolean"||typeof n=="number"?n.toString():""},{type:"number",node:(0,a.NumberNode)(),change:n=>typeof n=="string"?parseInt(n):0},{type:"object",node:(0,a.ObjectNode)({min:(0,a.Opt)((0,a.NumberNode)({integer:!0})),max:(0,a.Opt)((0,a.NumberNode)({integer:!0}))}),change:n=>typeof n=="number"?{min:n,max:n}:{}},{type:"boolean",node:(0,a.BooleanNode)(),change:n=>n==="true"||n===1}]);r.register("item_predicate",(0,a.ObjectNode)({items:(0,a.Opt)((0,a.ListNode)(o({validator:"resource",params:{pool:"item"}}))),tag:(0,a.Opt)(o({validator:"resource",params:{pool:"$tag/item"}})),count:t("int_bounds"),durability:t("int_bounds"),potion:(0,a.Opt)(o({validator:"resource",params:{pool:"potion"}})),nbt:(0,a.Opt)(o({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}})),enchantments:(0,a.Opt)((0,a.ListNode)(t("enchantment_predicate")))},{context:"item"})),r.register("enchantment_predicate",(0,a.ObjectNode)({enchantment:(0,a.Opt)(o({validator:"resource",params:{pool:"enchantment"}})),levels:t("int_bounds")},{context:"enchantment"})),r.register("block_predicate",(0,a.ObjectNode)({blocks:(0,a.Opt)((0,a.ListNode)(o({validator:"resource",params:{pool:"block"}}))),tag:(0,a.Opt)(o({validator:"resource",params:{pool:"$tag/block"}})),nbt:(0,a.Opt)(o({validator:"nbt",params:{registry:{category:"minecraft:block",id:["pop",{push:"block"}]}}})),state:(0,a.Opt)((0,a.MapNode)(o(),d,{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},{context:"block"})),r.register("fluid_predicate",(0,a.ObjectNode)({fluid:(0,a.Opt)(o({validator:"resource",params:{pool:"fluid"}})),tag:(0,a.Opt)(o({validator:"resource",params:{pool:"$tag/fluid"}})),state:(0,a.Opt)((0,a.MapNode)(o(),d))},{context:"fluid"})),r.register("location_predicate",(0,a.ObjectNode)({position:(0,a.Opt)((0,a.ObjectNode)({x:t("float_bounds"),y:t("float_bounds"),z:t("float_bounds")})),biome:(0,a.Opt)(o({validator:"resource",params:{pool:"$worldgen/biome"}})),structure:(0,a.Opt)(o({validator:"resource",params:{pool:"$worldgen/structure"}})),dimension:(0,a.Opt)(o({validator:"resource",params:{pool:"$dimension"}})),light:(0,a.Opt)((0,a.ObjectNode)({light:t("int_bounds")})),smokey:(0,a.Opt)((0,a.BooleanNode)()),block:(0,a.Opt)(t("block_predicate")),fluid:(0,a.Opt)(t("fluid_predicate"))},{context:"location"})),r.register("statistic_predicate",(0,a.ObjectNode)({type:o({validator:"resource",params:{pool:"stat_type"}}),stat:o(),value:t("int_bounds"),[a.Switch]:[{push:"type"}],[a.Case]:{"minecraft:mined":{stat:o({validator:"resource",params:{pool:"block"}})},"minecraft:crafted":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:used":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:broken":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:picked_up":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:dropped":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:killed":{stat:o({validator:"resource",params:{pool:"entity_type"}})},"minecraft:killed_by":{stat:o({validator:"resource",params:{pool:"entity_type"}})},"minecraft:custom":{stat:o({validator:"resource",params:{pool:"custom_stat"}})}}})),r.register("status_effect_predicate",(0,a.ObjectNode)({amplifier:t("int_bounds"),duration:t("int_bounds"),ambient:(0,a.Opt)((0,a.BooleanNode)()),visible:(0,a.Opt)((0,a.BooleanNode)())},{context:"status_effect"})),r.register("distance_predicate",(0,a.ObjectNode)({x:t("float_bounds"),y:t("float_bounds"),z:t("float_bounds"),absolute:t("float_bounds"),horizontal:t("float_bounds")},{context:"distance"})),r.register("entity_predicate",(0,a.ObjectNode)({type:(0,a.Opt)(o({validator:"resource",params:{pool:"entity_type",allowTag:!0}})),type_specific:(0,a.Opt)((0,a.ObjectNode)({type:o({enum:["any","cat","fishing_hook","frog","lightning","player","slime"]}),[a.Switch]:[{push:"type"}],[a.Case]:{cat:{variant:(0,a.Opt)(o({validator:"resource",params:{pool:"cat_variant"}}))},fishing_hook:{in_open_water:(0,a.Opt)((0,a.BooleanNode)())},frog:{variant:(0,a.Opt)(o({validator:"resource",params:{pool:"frog_variant"}}))},lightning:{blocks_set_on_fire:(0,a.Opt)(t("int_bounds")),entity_struck:(0,a.Opt)(t("entity_predicate"))},player:{gamemode:(0,a.Opt)(o({enum:"gamemode"})),level:t("int_bounds"),advancements:(0,a.Opt)((0,a.MapNode)(o({validator:"resource",params:{pool:"$advancement"}}),(0,a.ChoiceNode)([{type:"boolean",node:(0,a.BooleanNode)(),change:()=>!0},{type:"object",node:(0,a.MapNode)(o(),(0,a.BooleanNode)())}]))),recipes:(0,a.Opt)((0,a.MapNode)(o({validator:"resource",params:{pool:"$recipe"}}),(0,a.BooleanNode)())),stats:(0,a.Opt)((0,a.ListNode)(t("statistic_predicate"))),looking_at:(0,a.Opt)(t("entity_predicate"))},slime:{size:t("int_bounds")}}})),nbt:(0,a.Opt)(o({validator:"nbt",params:{registry:{category:"minecraft:entity",id:["pop",{push:"type"}]}}})),team:(0,a.Opt)(o({validator:"team"})),location:(0,a.Opt)(t("location_predicate")),stepping_on:(0,a.Opt)(t("location_predicate")),distance:(0,a.Opt)(t("distance_predicate")),flags:(0,a.Opt)((0,a.ObjectNode)({is_on_fire:(0,a.Opt)((0,a.BooleanNode)()),is_sneaking:(0,a.Opt)((0,a.BooleanNode)()),is_sprinting:(0,a.Opt)((0,a.BooleanNode)()),is_swimming:(0,a.Opt)((0,a.BooleanNode)()),is_baby:(0,a.Opt)((0,a.BooleanNode)())})),equipment:(0,a.Opt)((0,a.MapNode)(o({enum:"slot"}),t("item_predicate"))),vehicle:(0,a.Opt)(t("entity_predicate")),passenger:(0,a.Opt)(t("entity_predicate")),targeted_entity:(0,a.Opt)(t("entity_predicate")),effects:(0,a.Opt)((0,a.MapNode)(o({validator:"resource",params:{pool:"mob_effect"}}),t("status_effect_predicate")))},{context:"entity"})),r.register("damage_source_predicate",(0,a.ObjectNode)({is_explosion:(0,a.Opt)((0,a.BooleanNode)()),is_fire:(0,a.Opt)((0,a.BooleanNode)()),is_magic:(0,a.Opt)((0,a.BooleanNode)()),is_projectile:(0,a.Opt)((0,a.BooleanNode)()),is_lightning:(0,a.Opt)((0,a.BooleanNode)()),bypasses_armor:(0,a.Opt)((0,a.BooleanNode)()),bypasses_invulnerability:(0,a.Opt)((0,a.BooleanNode)()),bypasses_magic:(0,a.Opt)((0,a.BooleanNode)()),source_entity:(0,a.Opt)(t("entity_predicate")),direct_entity:(0,a.Opt)(t("entity_predicate"))},{context:"damage_source"})),r.register("damage_predicate",(0,a.ObjectNode)({dealt:t("float_bounds"),taken:t("float_bounds"),blocked:(0,a.Opt)((0,a.BooleanNode)()),source_entity:(0,a.Opt)(t("entity_predicate")),type:(0,a.Opt)(t("damage_source_predicate"))},{context:"damage"}))}ke.initPredicatesSchemas=Ot;var xe={};Object.defineProperty(xe,"__esModule",{value:!0});xe.initRecipeSchemas=void 0;const u=k;function kt(r,e){const t=u.Reference.bind(void 0,r),o=u.StringNode.bind(void 0,e);r.register("recipe",(0,u.Mod)((0,u.ObjectNode)({type:o({validator:"resource",params:{pool:"recipe_serializer"}}),[u.Switch]:[{push:"type"}],[u.Case]:{"minecraft:crafting_shaped":{group:(0,u.Opt)(o({enum:"recipe_group",additional:!0})),pattern:(0,u.ListNode)(o()),key:(0,u.MapNode)(o(),t("recipe_ingredient")),result:t("recipe_result")},"minecraft:crafting_shapeless":{group:(0,u.Opt)(o()),ingredients:(0,u.ListNode)(t("recipe_ingredient")),result:t("recipe_result")},"minecraft:smelting":{group:(0,u.Opt)(o()),ingredient:t("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:(0,u.Opt)((0,u.NumberNode)()),cookingtime:(0,u.Opt)((0,u.Mod)((0,u.NumberNode)({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:(0,u.Opt)(o()),ingredient:t("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:(0,u.Opt)((0,u.NumberNode)()),cookingtime:(0,u.Opt)((0,u.Mod)((0,u.NumberNode)({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:(0,u.Opt)(o()),ingredient:t("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:(0,u.Opt)((0,u.NumberNode)()),cookingtime:(0,u.Opt)((0,u.Mod)((0,u.NumberNode)({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:(0,u.Opt)(o()),ingredient:t("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:(0,u.Opt)((0,u.NumberNode)()),cookingtime:(0,u.Opt)((0,u.Mod)((0,u.NumberNode)({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:(0,u.Opt)(o()),ingredient:t("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),count:(0,u.NumberNode)({integer:!0})},"minecraft:smithing":{group:(0,u.Opt)(o()),base:t("recipe_ingredient_object"),addition:t("recipe_ingredient_object"),result:t("recipe_result")}}},{context:"recipe",disableSwitchContext:!0}),{default:()=>({type:"minecraft:crafting_shaped"})})),r.register("recipe_ingredient",(0,u.Mod)((0,u.ChoiceNode)([{type:"object",node:t("recipe_ingredient_object"),change:d=>d[0]},{type:"list",node:(0,u.ListNode)(t("recipe_ingredient_object")),change:d=>[d]}]),{default:()=>({item:"minecraft:stone"})})),r.register("recipe_ingredient_object",(0,u.Mod)((0,u.ObjectNode)({item:(0,u.Opt)(o({validator:"resource",params:{pool:"item"}})),tag:(0,u.Opt)(o({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),r.register("recipe_result",(0,u.Mod)((0,u.ObjectNode)({item:o({validator:"resource",params:{pool:"item"}}),count:(0,u.Opt)((0,u.Mod)((0,u.NumberNode)({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))}xe.initRecipeSchemas=kt;var we={};Object.defineProperty(we,"__esModule",{value:!0});we.initTagsSchemas=void 0;const H=k;function xt(r,e){const t=H.StringNode.bind(void 0,e),o=d=>(0,H.Mod)((0,H.ObjectNode)({replace:(0,H.Opt)((0,H.BooleanNode)()),values:(0,H.ListNode)((0,H.ChoiceNode)([{type:"string",node:t({validator:"resource",params:{pool:d,allowTag:!0}}),change:n=>n.id},{type:"object",node:(0,H.ObjectNode)({id:t({validator:"resource",params:{pool:d,allowTag:!0,allowUnknown:!0}}),required:(0,H.BooleanNode)()}),change:n=>({id:n})}]))},{context:"tag"}),{default:()=>({values:[]})});r.register("block_tag",o("block")),r.register("entity_type_tag",o("entity_type")),r.register("fluid_tag",o("fluid")),r.register("function_tag",o("$function")),r.register("game_event_tag",o("game_event")),r.register("item_tag",o("item")),r.register("advancement_tag",o("$advancement")),r.register("dimension_tag",o("$dimension")),r.register("dimension_type_tag",o("$dimension_type")),r.register("function_tag",o("$function")),r.register("item_modifier_tag",o("$item_modifier")),r.register("loot_table_tag",o("$loot_table")),r.register("predicate_tag",o("$predicate")),r.register("recipe_tag",o("$recipe")),r.register("structure_tag",o("$structure")),r.register("biome_tag",o("$worldgen/biome")),r.register("configured_carver_tag",o("$worldgen/configured_carver")),r.register("configured_feature_tag",o("$worldgen/configured_feature")),r.register("structure_tag",o("$worldgen/structure")),r.register("configured_surface_builder_tag",o("$worldgen/configured_surface_builder")),r.register("density_function_tag",o("$worldgen/density_function")),r.register("flat_level_generator_preset_tag",o("$worldgen/flat_level_generator_preset")),r.register("noise_tag",o("$worldgen/noise")),r.register("noise_settings_tag",o("$worldgen/noise_settings")),r.register("placed_feature_tag",o("$worldgen/placed_feature")),r.register("processor_list_tag",o("$worldgen/processor_list")),r.register("structure_set_tag",o("$worldgen/structure_set")),r.register("template_pool_tag",o("$worldgen/template_pool")),r.register("world_preset_tag",o("$worldgen/world_preset"))}we.initTagsSchemas=xt;var Se={};Object.defineProperty(Se,"__esModule",{value:!0});Se.initTextComponentSchemas=void 0;const m=k;function wt(r,e){const t=m.Reference.bind(void 0,r),o=m.StringNode.bind(void 0,e),d=l=>{var v;return l instanceof Array?d(l[0]):(v=l==null?void 0:l.text)!==null&&v!==void 0?v:typeof l=="object"?"":l==null?void 0:l.toString()};r.register("text_component",(0,m.Mod)((0,m.ChoiceNode)([{type:"object",node:t("text_component_object"),change:l=>l instanceof Array?typeof l[0]=="object"?l[0]:{text:d(l[0])}:typeof l=="object"?l:{text:d(l)}},{type:"list",node:t("text_component_list"),change:l=>[l]},{type:"string",priority:1,node:o(),change:d},{type:"number",node:(0,m.NumberNode)(),change:l=>{const v=parseFloat(d(l));return isFinite(v)?v:l?1:0}},{type:"boolean",node:(0,m.BooleanNode)(),change:l=>{const v=d(l);return v==="true"||v==="false"?v==="true":!!v}}],{context:"text_component"}),{default:()=>({text:""})}));const n={color:(0,m.Opt)(o()),font:(0,m.Opt)(o()),bold:(0,m.Opt)((0,m.BooleanNode)()),italic:(0,m.Opt)((0,m.BooleanNode)()),underlined:(0,m.Opt)((0,m.BooleanNode)()),strikethrough:(0,m.Opt)((0,m.BooleanNode)()),obfuscated:(0,m.Opt)((0,m.BooleanNode)()),insertion:(0,m.Opt)(o())};r.register("text_style",(0,m.ObjectNode)(g({},n),{context:"text_component_object"}));const c=W(g({},n),{clickEvent:(0,m.Opt)((0,m.ObjectNode)({action:o({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[m.Switch]:[{push:"action"}],[m.Case]:{change_page:{value:o()},copy_to_clipboard:{value:o()},open_file:{value:o()},open_url:{value:o()},run_command:{value:o({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})},suggest_command:{value:o({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})}}})),hoverEvent:(0,m.Opt)((0,m.ObjectNode)({action:o({enum:["show_text","show_item","show_entity"]}),[m.Switch]:[{push:"action"}],[m.Case]:{show_text:{value:(0,m.Opt)(t("text_component")),contents:(0,m.Opt)(t("text_component"))},show_item:{value:(0,m.Opt)(o({validator:"nbt",params:{module:"util::InventoryItem"}})),contents:(0,m.Opt)((0,m.ObjectNode)({id:o({validator:"resource",params:{pool:"item"}}),count:(0,m.Opt)((0,m.NumberNode)({integer:!0})),tag:(0,m.Opt)(o({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"id"}]}}}))}))},show_entity:{value:(0,m.Opt)((0,m.ObjectNode)({name:(0,m.Opt)(o()),type:(0,m.Opt)(o()),id:(0,m.Opt)(o())})),contents:(0,m.Opt)((0,m.Mod)((0,m.ObjectNode)({name:(0,m.Opt)(t("text_component")),type:o({validator:"resource",params:{pool:"entity_type"}}),id:o({validator:"uuid"})}),{default:()=>({type:"minecraft:pig",id:"00000001-0001-0001-0001-000000000001"})}))}}})),extra:(0,m.Opt)(t("text_component_list"))});r.register("text_component_object",(0,m.Mod)((0,m.ChoiceNode)([{type:"text",match:l=>typeof l=="object",change:l=>({text:""}),priority:-1,node:(0,m.ObjectNode)(g({text:o()},c))},{type:"translation",match:l=>(l==null?void 0:l.translate)!==void 0,change:l=>({translate:""}),node:(0,m.ObjectNode)(g({translate:o(),with:(0,m.Opt)(t("text_component_list"))},c))},{type:"score",match:l=>(l==null?void 0:l.score)!==void 0,change:l=>({score:{}}),node:(0,m.ObjectNode)(g({score:(0,m.ObjectNode)({name:o({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:o({validator:"objective"}),value:(0,m.Opt)(o())})},c))},{type:"selector",match:l=>(l==null?void 0:l.selector)!==void 0,change:l=>({selector:""}),node:(0,m.ObjectNode)(g({selector:o({validator:"entity",params:{amount:"multiple",type:"entities"}}),separator:(0,m.Opt)(t("text_component"))},c))},{type:"keybind",match:l=>(l==null?void 0:l.keybind)!==void 0,change:l=>({keybind:""}),node:(0,m.ObjectNode)(g({keybind:o({enum:"keybind",additional:!0})},c))},{type:"nbt",match:l=>(l==null?void 0:l.nbt)!==void 0,change:l=>({nbt:""}),node:(0,m.ObjectNode)(g({nbt:o({validator:"nbt_path"}),block:(0,m.Opt)(o({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:(0,m.Opt)(o({validator:"entity",params:{amount:"multiple",type:"entities"}})),storage:(0,m.Opt)(o({validator:"resource",params:{pool:"$storage"}})),interpret:(0,m.Opt)((0,m.BooleanNode)()),separator:(0,m.Opt)(t("text_component"))},c))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),r.register("text_component_list",(0,m.Mod)((0,m.ListNode)(t("text_component")),{default:()=>[{text:""}]}))}Se.initTextComponentSchemas=wt;var je={},qe={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.initBiomeSchemas=r.MobCategorySpawnSettings=void 0;const e=k,t=R;function o(d,n){const c=e.StringNode.bind(void 0,n);r.MobCategorySpawnSettings=(0,e.Mod)((0,e.ListNode)((0,e.ObjectNode)({type:c({validator:"resource",params:{pool:"entity_type"}}),weight:(0,e.NumberNode)({integer:!0}),minCount:(0,e.NumberNode)({integer:!0}),maxCount:(0,e.NumberNode)({integer:!0})})),{category:()=>"pool",default:()=>[{type:"minecraft:bat",weight:1}]}),d.register("biome",(0,e.Mod)((0,e.ObjectNode)({temperature:(0,e.NumberNode)(),downfall:(0,e.NumberNode)(),precipitation:c({enum:["none","rain","snow"]}),temperature_modifier:(0,e.Opt)(c({enum:["none","frozen"]})),creature_spawn_probability:(0,e.Opt)((0,e.NumberNode)({min:0,max:1})),effects:(0,e.ObjectNode)({sky_color:(0,e.NumberNode)({color:!0}),fog_color:(0,e.NumberNode)({color:!0}),water_color:(0,e.NumberNode)({color:!0}),water_fog_color:(0,e.NumberNode)({color:!0}),grass_color:(0,e.Opt)((0,e.NumberNode)({color:!0})),foliage_color:(0,e.Opt)((0,e.NumberNode)({color:!0})),grass_color_modifier:(0,e.Opt)(c({enum:["none","dark_forest","swamp"]})),ambient_sound:(0,e.Opt)(c()),mood_sound:(0,e.Opt)((0,e.ObjectNode)({sound:c(),tick_delay:(0,e.NumberNode)({integer:!0}),block_search_extent:(0,e.NumberNode)({integer:!0}),offset:(0,e.NumberNode)()})),additions_sound:(0,e.Opt)((0,e.ObjectNode)({sound:c(),tick_chance:(0,e.NumberNode)({min:0,max:1})})),music:(0,e.Opt)((0,e.ObjectNode)({sound:c(),min_delay:(0,e.NumberNode)({integer:!0,min:0}),max_delay:(0,e.NumberNode)({integer:!0,min:0}),replace_current_music:(0,e.BooleanNode)()})),particle:(0,e.Opt)((0,e.ObjectNode)({options:(0,e.ObjectNode)({type:c()}),probability:(0,e.NumberNode)({min:0,max:1})}))}),spawners:(0,e.MapNode)(c({enum:"mob_category"}),r.MobCategorySpawnSettings),spawn_costs:(0,e.MapNode)(c({validator:"resource",params:{pool:"entity_type"}}),(0,e.Mod)((0,e.ObjectNode)({energy_budget:(0,e.NumberNode)(),charge:(0,e.NumberNode)()},{category:"function"}),{default:()=>({energy_budget:.12,charge:1})})),carvers:(0,e.MapNode)(c({enum:["air","liquid"]}),(0,e.Mod)((0,t.Tag)({resource:"$worldgen/configured_carver",inlineSchema:"configured_carver"}),{default:()=>["minecraft:cave"]})),features:(0,e.ListNode)((0,e.Mod)((0,t.Tag)({resource:"$worldgen/placed_feature",inlineSchema:"placed_feature"}),{category:()=>"predicate"}),{maxLength:11})},{context:"biome"}),{default:()=>({temperature:.8,downfall:.4,precipitation:"rain",category:"plains",effects:{sky_color:7907327,fog_color:12638463,water_color:4159204,water_fog_color:329011}})}))}r.initBiomeSchemas=o})(qe);var Me={};Object.defineProperty(Me,"__esModule",{value:!0});Me.initCarverSchemas=void 0;const $=k,K=R;function St(r,e){const t=$.Reference.bind(void 0,r),o=$.StringNode.bind(void 0,e),d={vertical_rotation:(0,K.FloatProvider)(),shape:(0,$.ObjectNode)({distance_factor:(0,K.FloatProvider)(),thickness:(0,K.FloatProvider)(),width_smoothness:(0,$.NumberNode)({integer:!0,min:0}),horizontal_radius_factor:(0,K.FloatProvider)(),vertical_radius_default_factor:(0,$.NumberNode)(),vertical_radius_center_factor:(0,$.NumberNode)()})},n={horizontal_radius_multiplier:(0,K.FloatProvider)(),vertical_radius_multiplier:(0,K.FloatProvider)(),floor_level:(0,K.FloatProvider)({min:-1,max:1})};r.register("configured_carver",(0,$.Mod)((0,$.ObjectNode)({type:o({validator:"resource",params:{pool:"worldgen/carver"}}),config:(0,$.ObjectNode)({probability:(0,$.NumberNode)({min:0,max:1}),y:t("height_provider"),yScale:(0,K.FloatProvider)(),lava_level:t("vertical_anchor"),replaceable:(0,K.Tag)({resource:"block"}),debug_settings:(0,$.Opt)((0,$.ObjectNode)({debug_mode:(0,$.Opt)((0,$.BooleanNode)()),air_state:(0,$.Opt)(t("block_state")),water_state:(0,$.Opt)(t("block_state")),lava_state:(0,$.Opt)(t("block_state")),barrier_state:(0,$.Opt)(t("block_state"))})),[$.Switch]:["pop",{push:"type"}],[$.Case]:{"minecraft:canyon":d,"minecraft:cave":n,"minecraft:nether_cave":n}})},{context:"carver"}),{default:()=>({type:"minecraft:cave",config:{probability:.1}})}))}Me.initCarverSchemas=St;var Ce={};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.initDecoratorSchemas=void 0;const B=k,de=R;function jt(r,e){const t=B.Reference.bind(void 0,r),o=B.StringNode.bind(void 0,e);r.register("decorator",(0,B.ObjectNode)({type:o({validator:"resource",params:{pool:"worldgen/placement_modifier_type"}}),[B.Switch]:[{push:"type"}],[B.Case]:{"minecraft:block_predicate_filter":{predicate:t("block_predicate_worldgen")},"minecraft:carving_mask":{step:o({enum:"generation_step"})},"minecraft:rarity_filter":{chance:(0,B.NumberNode)({integer:!0,min:0})},"minecraft:count":{count:(0,de.IntProvider)({min:0,max:256})},"minecraft:count_on_every_layer":{count:(0,de.IntProvider)({min:0,max:256})},"minecraft:noise_threshold_count":{noise_level:(0,B.NumberNode)(),below_noise:(0,B.NumberNode)({integer:!0}),above_noise:(0,B.NumberNode)({integer:!0})},"minecraft:noise_based_count":{noise_to_count_ratio:(0,B.NumberNode)({integer:!0}),noise_factor:(0,B.NumberNode)(),noise_offset:(0,B.Opt)((0,B.NumberNode)())},"minecraft:environment_scan":{direction_of_search:o({enum:["up","down"]}),max_steps:(0,B.NumberNode)({integer:!0,min:1,max:32}),target_condition:t("block_predicate_worldgen"),allowed_search_condition:(0,B.Opt)(t("block_predicate_worldgen"))},"minecraft:heightmap":{heightmap:o({enum:"heightmap_type"})},"minecraft:height_range":{height:t("height_provider")},"minecraft:random_offset":{xz_spread:(0,de.IntProvider)({min:-16,max:16}),y_spread:(0,de.IntProvider)({min:-16,max:16})},"minecraft:surface_relative_threshold_filter":{heightmap:o({enum:"heightmap_type"}),min_inclusive:(0,B.Opt)((0,B.NumberNode)({integer:!0})),max_inclusive:(0,B.Opt)((0,B.NumberNode)({integer:!0}))},"minecraft:surface_water_depth_filter":{max_water_depth:(0,B.NumberNode)({integer:!0})}}},{context:"decorator",category:"predicate"}))}Ce.initDecoratorSchemas=jt;var Ie={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.initDensityFunctionSchemas=r.DensityFunction=void 0;const e=k;function t(o,d){const n=e.StringNode.bind(void 0,d),c=e.Reference.bind(void 0,o);r.DensityFunction=(0,e.Mod)((0,e.ChoiceNode)([{type:"number",node:(0,e.NumberNode)(),change:()=>0},{type:"string",priority:1,node:n({validator:"resource",params:{pool:"$worldgen/density_function"}}),change:()=>{}},{type:"object",node:c("density_function"),change:()=>({})}],{choiceContext:"density_function"}),{default:()=>0});const l=(0,e.ChoiceNode)([{type:"string",node:n({validator:"resource",params:{pool:"$worldgen/noise"}}),change:()=>{}},{type:"object",node:c("noise_parameters")}],{choiceContext:"noise_parameters"}),v=(0,e.NumberNode)({min:-1e6,max:1e6}),_=(0,e.NumberNode)({integer:!0,min:-2032*2,max:2031*2});o.register("density_function",(0,e.Mod)((0,e.ObjectNode)({type:n({validator:"resource",params:{pool:"worldgen/density_function_type"}}),[e.Switch]:[{push:"type"}],[e.Case]:{"minecraft:abs":{argument:r.DensityFunction},"minecraft:add":{argument1:r.DensityFunction,argument2:r.DensityFunction},"minecraft:blend_density":{argument:r.DensityFunction},"minecraft:cache_2d":{argument:r.DensityFunction},"minecraft:cache_all_in_cell":{argument:r.DensityFunction},"minecraft:cache_once":{argument:r.DensityFunction},"minecraft:clamp":{input:r.DensityFunction,min:v,max:v},"minecraft:constant":{argument:(0,e.NumberNode)()},"minecraft:cube":{argument:r.DensityFunction},"minecraft:flat_cache":{argument:r.DensityFunction},"minecraft:half_negative":{argument:r.DensityFunction},"minecraft:interpolated":{argument:r.DensityFunction},"minecraft:max":{argument1:r.DensityFunction,argument2:r.DensityFunction},"minecraft:min":{argument1:r.DensityFunction,argument2:r.DensityFunction},"minecraft:mul":{argument1:r.DensityFunction,argument2:r.DensityFunction},"minecraft:noise":{noise:l,xz_scale:(0,e.NumberNode)(),y_scale:(0,e.NumberNode)()},"minecraft:old_blended_noise":{xz_scale:(0,e.NumberNode)(),y_scale:(0,e.NumberNode)(),xz_factor:(0,e.NumberNode)(),y_factor:(0,e.NumberNode)(),smear_scale_multiplier:(0,e.NumberNode)({min:1,max:8})},"minecraft:quarter_negative":{argument:r.DensityFunction},"minecraft:range_choice":{input:r.DensityFunction,min_inclusive:v,max_exclusive:v,when_in_range:r.DensityFunction,when_out_of_range:r.DensityFunction},"minecraft:shift":{argument:r.DensityFunction},"minecraft:shift_a":{argument:r.DensityFunction},"minecraft:shift_b":{argument:r.DensityFunction},"minecraft:shifted_noise":{noise:l,xz_scale:(0,e.NumberNode)(),y_scale:(0,e.NumberNode)(),shift_x:r.DensityFunction,shift_y:r.DensityFunction,shift_z:r.DensityFunction},"minecraft:slide":{argument:r.DensityFunction},"minecraft:spline":{spline:c("cubic_spline")},"minecraft:square":{argument:r.DensityFunction},"minecraft:squeeze":{argument:r.DensityFunction},"minecraft:weird_scaled_sampler":{rarity_value_mapper:n({enum:["type_1","type_2"]}),noise:l,input:r.DensityFunction},"minecraft:y_clamped_gradient":{from_y:_,to_y:_,from_value:v,to_value:v}}},{context:"density_function",disableSwitchContext:!0}),{default:()=>({type:"minecraft:noise",noise:"minecraft:cave_entrance",xz_scale:.75,y_scale:.5})})),o.register("cubic_spline",(0,e.Mod)((0,e.ChoiceNode)([{type:"number",node:(0,e.NumberNode)()},{type:"object",node:(0,e.ObjectNode)({coordinate:r.DensityFunction,points:(0,e.ListNode)((0,e.ObjectNode)({location:(0,e.NumberNode)(),derivative:(0,e.NumberNode)(),value:c("cubic_spline")}))},{category:"function"})}],{context:"terrain_spline",choiceContext:"terrain_spline"}),{default:()=>0}))}r.initDensityFunctionSchemas=t})(Ie);var Pe={},Q={};Object.defineProperty(Q,"__esModule",{value:!0});Q.initProcessorListSchemas=Q.Processors=void 0;const h=k,Mt=R;function Ct(r,e){const t=h.Reference.bind(void 0,r),o=h.StringNode.bind(void 0,e);Q.Processors=(0,h.ChoiceNode)([{type:"string",node:o({validator:"resource",params:{pool:"$worldgen/processor_list"}}),change:n=>{}},{type:"object",node:t("processor_list"),change:n=>({processors:[{processor_type:"minecraft:nop"}]})}]),r.register("processor_list",(0,h.Mod)((0,h.ObjectNode)({processors:(0,h.ListNode)(t("processor"))},{context:"processor_list"}),{default:()=>({processors:[{processor_type:"minecraft:rule",rules:[{location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}}]}]})})),r.register("processor",(0,h.Mod)((0,h.ObjectNode)({processor_type:o({validator:"resource",params:{pool:"worldgen/structure_processor"}}),[h.Switch]:[{push:"processor_type"}],[h.Case]:{"minecraft:block_age":{mossiness:(0,h.NumberNode)()},"minecraft:block_ignore":{blocks:(0,h.ListNode)(t("block_state"))},"minecraft:block_rot":{integrity:(0,h.NumberNode)({min:0,max:1}),rottable_blocks:(0,h.Opt)((0,Mt.Tag)({resource:"block"}))},"minecraft:gravity":{heightmap:o({enum:"heightmap_type"}),offset:(0,h.NumberNode)({integer:!0})},"minecraft:protected_blocks":{value:o({validator:"resource",params:{pool:"block",requireTag:!0}})},"minecraft:rule":{rules:(0,h.ListNode)(t("processor_rule"))}}},{category:"function",context:"processor"}),{default:()=>({processor_type:"minecraft:rule",rules:[{location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}}]})})),r.register("processor_rule",(0,h.Mod)((0,h.ObjectNode)({position_predicate:(0,h.Opt)(t("pos_rule_test")),location_predicate:t("rule_test"),input_predicate:t("rule_test"),output_state:t("block_state"),output_nbt:(0,h.Opt)(o({validator:"nbt",params:{registry:{category:"minecraft:block"}}}))},{category:"predicate",context:"processor_rule"}),{default:()=>({location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}})}));const d={min_dist:(0,h.Opt)((0,h.NumberNode)({min:0,max:255,integer:!0})),max_dist:(0,h.Opt)((0,h.NumberNode)({min:0,max:255,integer:!0})),min_chance:(0,h.Opt)((0,h.NumberNode)({min:0,max:1})),max_chance:(0,h.Opt)((0,h.NumberNode)({min:0,max:1}))};r.register("pos_rule_test",(0,h.ObjectNode)({predicate_type:o({validator:"resource",params:{pool:"pos_rule_test"}}),[h.Switch]:[{push:"predicate_type"}],[h.Case]:{"minecraft:axis_aligned_linear_pos":g({axis:o({enum:["x","y","z"]})},d),"minecraft:linear_pos":d}},{context:"pos_rule_test",disableSwitchContext:!0})),r.register("rule_test",(0,h.ObjectNode)({predicate_type:o({validator:"resource",params:{pool:"rule_test"}}),[h.Switch]:[{push:"predicate_type"}],[h.Case]:{"minecraft:block_match":{block:o({validator:"resource",params:{pool:"block"}})},"minecraft:blockstate_match":{block_state:t("block_state")},"minecraft:random_block_match":{block:o({validator:"resource",params:{pool:"block"}}),probability:(0,h.NumberNode)({min:0,max:1})},"minecraft:random_blockstate_match":{block_state:t("block_state"),probability:(0,h.NumberNode)({min:0,max:1})},"minecraft:tag_match":{tag:o({validator:"resource",params:{pool:"$tag/block"}})}}},{context:"rule_test",disableSwitchContext:!0}))}Q.initProcessorListSchemas=Ct;Object.defineProperty(Pe,"__esModule",{value:!0});Pe.initFeatureSchemas=void 0;const i=k,f=R,Ue=Q;function Pt(r,e){const t=i.Reference.bind(void 0,r),o=i.StringNode.bind(void 0,e),d=(0,i.ChoiceNode)([{type:"string",node:o({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},{type:"object",node:t("configured_feature")}],{choiceContext:"feature"}),n=(0,i.ChoiceNode)([{type:"string",node:o({validator:"resource",params:{pool:"$worldgen/placed_feature"}})},{type:"object",node:t("placed_feature")}],{choiceContext:"placed_feature"}),c={tries:(0,i.Opt)((0,i.NumberNode)({integer:!0,min:1})),xz_spread:(0,i.Opt)((0,i.NumberNode)({integer:!0,min:0})),y_spread:(0,i.Opt)((0,i.NumberNode)({integer:!0,min:0})),feature:n},l={cap_provider:t("block_state_provider"),stem_provider:t("block_state_provider"),foliage_radius:(0,i.Opt)((0,i.NumberNode)({integer:!0}))},v=(0,i.ObjectNode)({target:t("rule_test"),state:t("block_state")}),_={size:(0,i.NumberNode)({integer:!0,min:0,max:64}),discard_chance_on_air_exposure:(0,i.NumberNode)({min:0,max:1}),targets:(0,i.ListNode)(v)},b={surface:o({enum:"cave_surface"}),depth:(0,f.IntProvider)({min:1,max:128}),vertical_range:(0,i.NumberNode)({integer:!0,min:1,max:256}),extra_bottom_block_chance:(0,i.NumberNode)({min:0,max:1}),extra_edge_column_chance:(0,i.NumberNode)({min:0,max:1}),vegetation_chance:(0,i.NumberNode)({min:0,max:1}),xz_radius:(0,f.IntProvider)(),replaceable:o({validator:"resource",params:{pool:"block",requireTag:!0}}),ground_state:t("block_state_provider"),vegetation_feature:n};r.register("configured_feature",(0,i.Mod)((0,i.ObjectNode)({type:o({validator:"resource",params:{pool:"worldgen/feature"}}),config:(0,i.ObjectNode)({[i.Switch]:["pop",{push:"type"}],[i.Case]:{"minecraft:bamboo":{probability:(0,i.NumberNode)({min:0,max:1})},"minecraft:basalt_columns":{reach:(0,f.IntProvider)({min:0,max:3}),height:(0,f.IntProvider)({min:1,max:10})},"minecraft:block_column":{direction:o({enum:["up","down","north","east","south","west"]}),allowed_placement:t("block_predicate_worldgen"),prioritize_tip:(0,i.BooleanNode)(),layers:(0,i.ListNode)((0,i.ObjectNode)({height:(0,f.IntProvider)({min:0}),provider:t("block_state_provider")}))},"minecraft:block_pile":{state_provider:t("block_state_provider")},"minecraft:delta_feature":{contents:t("block_state"),rim:t("block_state"),size:(0,f.IntProvider)({min:0,max:16}),rim_size:(0,f.IntProvider)({min:0,max:16})},"minecraft:disk":{state_provider:t("rule_based_block_state_provider"),target:t("block_predicate_worldgen"),radius:(0,f.IntProvider)({min:0,max:8}),half_height:(0,i.NumberNode)({integer:!0,min:0,max:4})},"minecraft:dripstone_cluster":{floor_to_ceiling_search_range:(0,i.NumberNode)({integer:!0,min:1,max:512}),height:(0,f.IntProvider)({min:0,max:128}),radius:(0,f.IntProvider)({min:0,max:128}),max_stalagmite_stalactite_height_diff:(0,i.NumberNode)({integer:!0,min:0,max:64}),height_deviation:(0,i.NumberNode)({integer:!0,min:1,max:64}),dripstone_block_layer_thickness:(0,f.IntProvider)({min:0,max:128}),density:(0,f.FloatProvider)({min:0,max:2}),wetness:(0,f.FloatProvider)({min:0,max:2}),chance_of_dripstone_column_at_max_distance_from_center:(0,i.NumberNode)({min:0,max:1}),max_distance_from_edge_affecting_chance_of_dripstone_column:(0,i.NumberNode)({integer:!0,min:1,max:64}),max_distance_from_center_affecting_height_bias:(0,i.NumberNode)({integer:!0,min:1,max:64})},"minecraft:end_gateway":{exact:(0,i.BooleanNode)(),exit:(0,i.Opt)(t("block_pos"))},"minecraft:end_spike":{crystal_invulnerable:(0,i.Opt)((0,i.BooleanNode)()),crystal_beam_target:(0,i.Opt)(t("block_pos")),spikes:(0,i.ListNode)((0,i.ObjectNode)({centerX:(0,i.Opt)((0,i.NumberNode)({integer:!0})),centerZ:(0,i.Opt)((0,i.NumberNode)({integer:!0})),radius:(0,i.Opt)((0,i.NumberNode)({integer:!0})),height:(0,i.Opt)((0,i.NumberNode)({integer:!0})),guarded:(0,i.Opt)((0,i.BooleanNode)())}))},"minecraft:fill_layer":{state:t("block_state"),height:(0,i.NumberNode)({integer:!0,min:0,max:255})},"minecraft:flower":c,"minecraft:forest_rock":{state:t("block_state")},"minecraft:fossil":{max_empty_corners_allowed:(0,i.NumberNode)({integer:!0,min:0,max:7}),fossil_structures:(0,i.ListNode)(o({validator:"resource",params:{pool:"$structure"}})),overlay_structures:(0,i.ListNode)(o({validator:"resource",params:{pool:"$structure"}})),fossil_processors:Ue.Processors,overlay_processors:Ue.Processors},"minecraft:geode":{blocks:(0,i.ObjectNode)({filling_provider:t("block_state_provider"),inner_layer_provider:t("block_state_provider"),alternate_inner_layer_provider:t("block_state_provider"),middle_layer_provider:t("block_state_provider"),outer_layer_provider:t("block_state_provider"),inner_placements:(0,i.ListNode)(t("block_state")),cannot_replace:o({validator:"resource",params:{pool:"block",requireTag:!0}}),invalid_blocks:o({validator:"resource",params:{pool:"block",requireTag:!0}})}),layers:(0,i.ObjectNode)({filling:(0,i.Opt)((0,i.NumberNode)({min:.01,max:50})),inner_layer:(0,i.Opt)((0,i.NumberNode)({min:.01,max:50})),middle_layer:(0,i.Opt)((0,i.NumberNode)({min:.01,max:50})),outer_layer:(0,i.Opt)((0,i.NumberNode)({min:.01,max:50}))}),crack:(0,i.ObjectNode)({generate_crack_chance:(0,i.Opt)((0,i.NumberNode)({min:0,max:1})),base_crack_size:(0,i.Opt)((0,i.NumberNode)({min:0,max:5})),crack_point_offset:(0,i.Opt)((0,i.NumberNode)({min:0,max:10}))}),noise_multiplier:(0,i.Opt)((0,i.NumberNode)({min:0,max:1})),use_potential_placements_chance:(0,i.Opt)((0,i.NumberNode)({min:0,max:1})),use_alternate_layer0_chance:(0,i.Opt)((0,i.NumberNode)({min:0,max:1})),placements_require_layer0_alternate:(0,i.Opt)((0,i.BooleanNode)()),outer_wall_distance:(0,i.Opt)((0,f.IntProvider)({min:1,max:20})),distribution_points:(0,i.Opt)((0,f.IntProvider)({min:1,max:20})),point_offset:(0,i.Opt)((0,f.IntProvider)({min:0,max:10})),min_gen_offset:(0,i.Opt)((0,i.NumberNode)({integer:!0})),max_gen_offset:(0,i.Opt)((0,i.NumberNode)({integer:!0})),invalid_blocks_threshold:(0,i.NumberNode)({integer:!0})},"minecraft:multiface_growth":{block:(0,i.Opt)(o({validator:"resource",params:{pool:["minecraft:glow_lichen","minecraft:sculk_vein"]}})),search_range:(0,i.Opt)((0,i.NumberNode)({min:1,max:64,integer:!0})),chance_of_spreading:(0,i.Opt)((0,i.NumberNode)({min:0,max:1})),can_place_on_floor:(0,i.Opt)((0,i.BooleanNode)()),can_place_on_ceiling:(0,i.Opt)((0,i.BooleanNode)()),can_place_on_wall:(0,i.Opt)((0,i.BooleanNode)()),can_be_placed_on:(0,f.Tag)({resource:"block"})},"minecraft:huge_brown_mushroom":l,"minecraft:huge_fungus":{hat_state:t("block_state"),decor_state:t("block_state"),stem_state:t("block_state"),valid_base_block:t("block_state"),planted:(0,i.Opt)((0,i.BooleanNode)())},"minecraft:huge_red_mushroom":l,"minecraft:iceberg":{state:t("block_state")},"minecraft:lake":{fluid:t("block_state_provider"),barrier:t("block_state_provider")},"minecraft:large_dripstone":{floor_to_ceiling_search_range:(0,i.Opt)((0,i.NumberNode)({integer:!0,min:1,max:512})),column_radius:(0,f.IntProvider)({min:0,max:60}),height_scale:(0,f.FloatProvider)({min:0,max:20}),max_column_radius_to_cave_height_ratio:(0,i.NumberNode)({min:0,max:1}),stalactite_bluntness:(0,f.FloatProvider)({min:.1,max:10}),stalagmite_bluntness:(0,f.FloatProvider)({min:.1,max:10}),wind_speed:(0,f.FloatProvider)({min:0,max:2}),min_radius_for_wind:(0,i.NumberNode)({integer:!0,min:0,max:100}),min_bluntness_for_wind:(0,i.NumberNode)({min:0,max:5})},"minecraft:nether_forest_vegetation":{state_provider:t("block_state_provider"),spread_width:(0,i.NumberNode)({integer:!0,min:1}),spread_height:(0,i.NumberNode)({integer:!0,min:1})},"minecraft:netherrack_replace_blobs":{state:t("block_state"),target:t("block_state"),radius:(0,f.IntProvider)({min:0,max:12})},"minecraft:no_bonemeal_flower":c,"minecraft:ore":_,"minecraft:pointed_dripstone":{chance_of_taller_dripstone:(0,i.Opt)((0,i.NumberNode)({min:0,max:1})),chance_of_directional_spread:(0,i.Opt)((0,i.NumberNode)({min:0,max:1})),chance_of_spread_radius2:(0,i.Opt)((0,i.NumberNode)({min:0,max:1})),chance_of_spread_radius3:(0,i.Opt)((0,i.NumberNode)({min:0,max:1}))},"minecraft:random_patch":c,"minecraft:random_boolean_selector":{feature_false:n,feature_true:n},"minecraft:random_selector":{features:(0,i.ListNode)((0,i.ObjectNode)({chance:(0,i.NumberNode)({min:0,max:1}),feature:n})),default:n},"minecraft:replace_single_block":{targets:(0,i.ListNode)(v)},"minecraft:root_system":{required_vertical_space_for_tree:(0,i.NumberNode)({integer:!0,min:1,max:64}),root_radius:(0,i.NumberNode)({integer:!0,min:1,max:64}),root_placement_attempts:(0,i.NumberNode)({integer:!0,min:1,max:256}),root_column_max_height:(0,i.NumberNode)({integer:!0,min:1,max:4096}),hanging_root_radius:(0,i.NumberNode)({integer:!0,min:1,max:64}),hanging_roots_vertical_span:(0,i.NumberNode)({integer:!0,min:0,max:16}),hanging_root_placement_attempts:(0,i.NumberNode)({integer:!0,min:0,max:256}),allowed_vertical_water_for_tree:(0,i.NumberNode)({integer:!0,min:1,max:64}),root_replaceable:o({validator:"resource",params:{pool:"block",requireTag:!0}}),root_state_provider:t("block_state_provider"),hanging_root_state_provider:t("block_state_provider"),allowed_tree_position:t("block_predicate_worldgen"),feature:n},"minecraft:scattered_ore":_,"minecraft:sculk_patch":{charge_count:(0,i.NumberNode)({integer:!0,min:1,max:32}),amount_per_charge:(0,i.NumberNode)({integer:!0,min:1,max:500}),spread_attempts:(0,i.NumberNode)({integer:!0,min:1,max:64}),growth_rounds:(0,i.NumberNode)({integer:!0,min:0,max:8}),spread_rounds:(0,i.NumberNode)({integer:!0,min:0,max:8}),extra_rare_growths:(0,f.IntProvider)(),catalyst_chance:(0,i.NumberNode)({min:0,max:1})},"minecraft:sea_pickle":{count:(0,f.IntProvider)({min:0,max:256})},"minecraft:seagrass":{probability:(0,i.NumberNode)({min:0,max:1})},"minecraft:simple_block":{to_place:t("block_state_provider")},"minecraft:simple_random_selector":{features:(0,f.Tag)({resource:"$worldgen/placed_feature",inlineSchema:"placed_feature"})},"minecraft:spring_feature":{state:t("fluid_state"),rock_count:(0,i.NumberNode)({integer:!0}),hole_count:(0,i.NumberNode)({integer:!0}),requires_block_below:(0,i.BooleanNode)(),valid_blocks:(0,f.Tag)({resource:"block"})},"minecraft:tree":{ignore_vines:(0,i.Opt)((0,i.BooleanNode)()),force_dirt:(0,i.Opt)((0,i.BooleanNode)()),minimum_size:t("feature_size"),dirt_provider:t("block_state_provider"),trunk_provider:t("block_state_provider"),foliage_provider:t("block_state_provider"),root_placer:(0,i.Opt)((0,i.ObjectNode)({type:o({validator:"resource",params:{pool:"worldgen/root_placer_type"}}),root_provider:t("block_state_provider"),trunk_offset_y:(0,f.IntProvider)(),above_root_placement:(0,i.Opt)((0,i.ObjectNode)({above_root_provider:t("block_state_provider"),above_root_placement_chance:(0,i.NumberNode)({min:0,max:1})})),[i.Switch]:[{push:"type"}],[i.Case]:{"minecraft:mangrove_root_placer":{mangrove_root_placement:(0,i.ObjectNode)({max_root_width:(0,i.NumberNode)({integer:!0,min:1,max:12}),max_root_length:(0,i.NumberNode)({integer:!0,min:1,max:64}),random_skew_chance:(0,i.NumberNode)({min:0,max:1}),can_grow_through:(0,f.Tag)({resource:"block"}),muddy_roots_in:(0,f.Tag)({resource:"block"}),muddy_roots_provider:t("block_state_provider")})}}},{context:"root_placer"})),trunk_placer:(0,i.ObjectNode)({type:o({validator:"resource",params:{pool:"worldgen/trunk_placer_type"}}),base_height:(0,i.NumberNode)({integer:!0,min:0,max:32}),height_rand_a:(0,i.NumberNode)({integer:!0,min:0,max:24}),height_rand_b:(0,i.NumberNode)({integer:!0,min:0,max:24}),[i.Switch]:[{push:"type"}],[i.Case]:{"minecraft:bending_trunk_placer":{bend_length:(0,f.IntProvider)({min:1,max:64}),min_height_for_leaves:(0,i.Opt)((0,i.NumberNode)({integer:!0,min:1}))},"minecraft:upwards_branching_trunk_placer":{extra_branch_steps:(0,f.IntProvider)({min:1}),extra_branch_length:(0,f.IntProvider)({min:0}),place_branch_per_log_probability:(0,i.NumberNode)({min:0,max:1}),can_grow_through:(0,f.Tag)({resource:"block"})}}},{context:"trunk_placer"}),foliage_placer:(0,i.ObjectNode)({type:o({validator:"resource",params:{pool:"worldgen/foliage_placer_type"}}),radius:(0,f.IntProvider)({min:0,max:16}),offset:(0,f.IntProvider)({min:0,max:16}),[i.Switch]:[{push:"type"}],[i.Case]:{"minecraft:blob_foliage_placer":{height:(0,i.NumberNode)({integer:!0,min:0,max:16})},"minecraft:bush_foliage_placer":{height:(0,i.NumberNode)({integer:!0,min:0,max:16})},"minecraft:fancy_foliage_placer":{height:(0,i.NumberNode)({integer:!0,min:0,max:16})},"minecraft:jungle_foliage_placer":{height:(0,i.NumberNode)({integer:!0,min:0,max:16})},"minecraft:mega_pine_foliage_placer":{crown_height:(0,f.IntProvider)({min:0,max:24})},"minecraft:pine_foliage_placer":{height:(0,f.IntProvider)({min:0,max:24})},"minecraft:random_spread_foliage_placer":{foliage_height:(0,f.IntProvider)({min:1,max:512}),leaf_placement_attempts:(0,i.NumberNode)({integer:!0,min:0,max:256})},"minecraft:spruce_foliage_placer":{trunk_height:(0,f.IntProvider)({min:0,max:24})}}},{context:"foliage_placer",disableSwitchContext:!0}),decorators:(0,i.ListNode)((0,i.ObjectNode)({type:o({validator:"resource",params:{pool:"worldgen/tree_decorator_type"}}),[i.Switch]:[{push:"type"}],[i.Case]:{"minecraft:alter_ground":{provider:t("block_state_provider")},"minecraft:attached_to_leaves":{probability:(0,i.NumberNode)({min:0,max:1}),exclusion_radius_xz:(0,i.NumberNode)({integer:!0,min:0,max:16}),exclusion_radius_y:(0,i.NumberNode)({integer:!0,min:0,max:16}),required_empty_blocks:(0,i.NumberNode)({integer:!0,min:1,max:16}),block_provider:t("block_state_provider"),directions:(0,i.ListNode)(o({enum:"direction"}))},"minecraft:beehive":{probability:(0,i.NumberNode)({min:0,max:1})},"minecraft:cocoa":{probability:(0,i.NumberNode)({min:0,max:1})},"minecraft:leave_vine":{probability:(0,i.NumberNode)({min:0,max:1})}}},{context:"tree_decorator"}))},"minecraft:twisting_vines":{spread_width:(0,i.NumberNode)({integer:!0,min:1}),spread_height:(0,i.NumberNode)({integer:!0,min:1}),max_height:(0,i.NumberNode)({integer:!0,min:1})},"minecraft:underwater_magma":{floor_search_range:(0,i.NumberNode)({integer:!0,min:0,max:512}),placement_radius_around_floor:(0,i.NumberNode)({integer:!0,min:0,max:64}),placement_probability_per_valid_position:(0,i.NumberNode)({min:0,max:1})},"minecraft:vegetation_patch":b,"minecraft:waterlogged_vegetation_patch":b}},{context:"feature"})},{context:"feature"}),{default:()=>({type:"minecraft:tree",config:{minimum_size:{type:"minecraft:two_layers_feature_size"},trunk_placer:{type:"minecraft:straight_trunk_placer",base_height:5,height_rand_a:2,height_rand_b:0},foliage_placer:{type:"minecraft:blob_foliage_placer",radius:2,offset:0,height:3}}})})),r.register("placed_feature",(0,i.Mod)((0,i.ObjectNode)({feature:d,placement:(0,i.ListNode)(t("decorator"))},{context:"placed_feature"}),{default:()=>({feature:"minecraft:oak",placement:[{type:"minecraft:count",count:4},{type:"minecraft:in_square"},{type:"minecraft:heightmap",heightmap:"OCEAN_FLOOR"}]})})),r.register("feature_size",(0,i.Mod)((0,i.ObjectNode)({type:o({validator:"resource",params:{pool:"worldgen/feature_size_type"}}),min_clipped_height:(0,i.Opt)((0,i.NumberNode)({min:0,max:80})),[i.Switch]:[{push:"type"}],[i.Case]:{"minecraft:two_layers_feature_size":{limit:(0,i.Opt)((0,i.NumberNode)({integer:!0,min:0,max:81})),lower_size:(0,i.Opt)((0,i.NumberNode)({integer:!0,min:0,max:16})),upper_size:(0,i.Opt)((0,i.NumberNode)({integer:!0,min:0,max:16}))},"minecraft:three_layers_feature_size":{limit:(0,i.Opt)((0,i.NumberNode)({integer:!0,min:0,max:80})),upper_limit:(0,i.Opt)((0,i.NumberNode)({integer:!0,min:0,max:80})),lower_size:(0,i.Opt)((0,i.NumberNode)({integer:!0,min:0,max:16})),middle_size:(0,i.Opt)((0,i.NumberNode)({integer:!0,min:0,max:16})),upper_size:(0,i.Opt)((0,i.NumberNode)({integer:!0,min:0,max:16}))}}},{disableSwitchContext:!0}),{default:()=>({type:"minecraft:two_layers_feature_size"})}));const j={seed:(0,i.NumberNode)({integer:!0}),noise:t("noise_parameters"),scale:(0,i.Mod)((0,i.NumberNode)({min:Number.MIN_VALUE}),{default:()=>1})};r.register("block_state_provider",(0,i.Mod)((0,i.ObjectNode)({type:o({validator:"resource",params:{pool:"worldgen/block_state_provider_type"}}),[i.Switch]:[{push:"type"}],[i.Case]:{"minecraft:dual_noise_provider":W(g({},j),{variety:(0,f.InclusiveRange)({integer:!0,min:1,max:64}),slow_noise:t("noise_parameters"),slow_scale:(0,i.Mod)((0,i.NumberNode)({min:Number.MIN_VALUE}),{default:()=>1}),states:(0,i.ListNode)(t("block_state"))}),"minecraft:noise_threshold_provider":W(g({},j),{threshold:(0,i.NumberNode)({min:-1,max:1}),high_chance:(0,i.NumberNode)({min:0,max:1}),default_state:t("block_state"),low_states:(0,i.ListNode)(t("block_state")),high_states:(0,i.ListNode)(t("block_state"))}),"minecraft:noise_provider":W(g({},j),{states:(0,i.ListNode)(t("block_state"))}),"minecraft:randomized_int_state_provider":{property:o(),values:(0,f.IntProvider)(),source:t("block_state_provider")},"minecraft:rotated_block_provider":{state:t("block_state")},"minecraft:simple_state_provider":{state:t("block_state")},"minecraft:weighted_state_provider":{entries:(0,i.ListNode)((0,i.Mod)((0,i.ObjectNode)({weight:(0,i.NumberNode)({integer:!0,min:1}),data:t("block_state")}),{default:()=>({data:{}})}))}}},{context:"block_state_provider"}),{default:()=>({type:"minecraft:simple_state_provider"})})),r.register("rule_based_block_state_provider",(0,i.Mod)((0,i.ObjectNode)({fallback:t("block_state_provider"),rules:(0,i.ListNode)((0,i.ObjectNode)({if_true:t("block_predicate_worldgen"),then:t("block_state_provider")}))},{context:"block_state_provider"}),{default:()=>({fallback:{type:"minecraft:simple_state_provider"}})}));const y={offset:(0,i.Opt)((0,i.ListNode)((0,i.NumberNode)({integer:!0,min:-16,max:16}),{minLength:3,maxLength:3}))};r.register("block_predicate_worldgen",(0,i.Mod)((0,i.ObjectNode)({type:o({validator:"resource",params:{pool:"block_predicate_type"}}),[i.Switch]:[{push:"type"}],[i.Case]:{"minecraft:all_of":{predicates:(0,i.ListNode)(t("block_predicate_worldgen"))},"minecraft:any_of":{predicates:(0,i.ListNode)(t("block_predicate_worldgen"))},"minecraft:has_sturdy_face":W(g({},y),{direction:o({enum:"direction"})}),"minecraft:inside_world_bounds":g({},y),"minecraft:matching_block_tag":W(g({},y),{tag:o({validator:"resource",params:{pool:"$tag/block"}})}),"minecraft:matching_blocks":W(g({},y),{blocks:(0,f.Tag)({resource:"block"})}),"minecraft:matching_fluids":W(g({},y),{fluids:(0,f.Tag)({resource:"fluid"})}),"minecraft:not":{predicate:t("block_predicate_worldgen")},"minecraft:would_survive":W(g({},y),{state:t("block_state")})}},{context:"block_predicate"}),{default:()=>({type:"minecraft:true"})}))}Pe.initFeatureSchemas=Pt;var Le={};Object.defineProperty(Le,"__esModule",{value:!0});Le.initNoiseSettingsSchemas=void 0;const C=k,Lt=R,D=Ie;function $t(r,e){const t=C.Reference.bind(void 0,r),o=C.StringNode.bind(void 0,e);r.register("noise_settings",(0,C.Mod)((0,C.ObjectNode)({sea_level:(0,C.NumberNode)({integer:!0}),disable_mob_generation:(0,C.BooleanNode)(),aquifers_enabled:(0,C.BooleanNode)(),ore_veins_enabled:(0,C.BooleanNode)(),legacy_random_source:(0,C.BooleanNode)(),default_block:t("block_state"),default_fluid:t("block_state"),noise:(0,C.ObjectNode)({min_y:(0,C.NumberNode)({integer:!0,min:-2048,max:2047}),height:(0,C.NumberNode)({integer:!0,min:0,max:4096}),size_horizontal:(0,C.NumberNode)({integer:!0}),size_vertical:(0,C.NumberNode)({integer:!0})}),noise_router:(0,C.ObjectNode)({barrier:D.DensityFunction,fluid_level_floodedness:D.DensityFunction,fluid_level_spread:D.DensityFunction,lava:D.DensityFunction,temperature:D.DensityFunction,vegetation:D.DensityFunction,continents:D.DensityFunction,erosion:D.DensityFunction,depth:D.DensityFunction,ridges:D.DensityFunction,initial_density_without_jaggedness:D.DensityFunction,final_density:D.DensityFunction,vein_toggle:D.DensityFunction,vein_ridged:D.DensityFunction,vein_gap:D.DensityFunction}),spawn_target:(0,C.ListNode)(t("parameter_point")),surface_rule:t("material_rule")},{context:"noise_settings"}),d=>({default:()=>Lt.DefaultNoiseSettings,validate:(n,c,l,v)=>{var _,b,j,y;return c=d.validate(n,c,l,v),((_=c==null?void 0:c.noise)===null||_===void 0?void 0:_.min_y)+((b=c==null?void 0:c.noise)===null||b===void 0?void 0:b.height)>2047&&l.add(n.push("noise").push("height"),"error.min_y_plus_height",2047),((j=c==null?void 0:c.noise)===null||j===void 0?void 0:j.height)%16!==0&&l.add(n.push("noise").push("height"),"error.height_multiple",16),((y=c==null?void 0:c.noise)===null||y===void 0?void 0:y.min_y)%16!==0&&l.add(n.push("noise").push("min_y"),"error.min_y_multiple",16),c}}))),r.register("noise_slider",(0,C.ObjectNode)({target:(0,C.NumberNode)(),size:(0,C.NumberNode)({integer:!0,min:0}),offset:(0,C.NumberNode)({integer:!0})})),r.register("generator_layer",(0,C.Mod)((0,C.ObjectNode)({block:o({validator:"resource",params:{pool:"block"}}),height:(0,C.NumberNode)({integer:!0,min:1})}),{default:()=>({block:"minecraft:stone",height:1})}))}Le.initNoiseSettingsSchemas=$t;var $e={};Object.defineProperty($e,"__esModule",{value:!0});$e.initStructureSchemas=void 0;const x=k,Bt=R,Ft=qe;function zt(r,e){const t=x.StringNode.bind(void 0,e),o=x.Reference.bind(void 0,r);r.register("structure",(0,x.Mod)((0,x.ObjectNode)({type:t({validator:"resource",params:{pool:"worldgen/structure_type"}}),biomes:(0,Bt.Tag)({resource:"$worldgen/biome"}),step:t({enum:"decoration_step"}),spawn_overrides:(0,x.MapNode)(t({enum:"mob_category"}),(0,x.ObjectNode)({bounding_box:t({enum:["piece","full"]}),spawns:Ft.MobCategorySpawnSettings})),terrain_adaptation:(0,x.Opt)(t({enum:["none","beard_thin","beard_box","bury"]})),[x.Switch]:[{push:"type"}],[x.Case]:{"minecraft:jigsaw":{start_pool:t({validator:"resource",params:{pool:"$worldgen/template_pool"}}),size:(0,x.NumberNode)({integer:!0}),start_height:o("height_provider"),start_jigsaw_name:(0,x.Opt)(t()),project_start_to_heightmap:(0,x.Opt)(t({enum:"heightmap_type"})),max_distance_from_center:(0,x.Mod)((0,x.NumberNode)({integer:!0,min:1,max:128}),{default:()=>80}),use_expansion_hack:(0,x.BooleanNode)()},"minecraft:mineshaft":{mineshaft_type:t({enum:["normal","mesa"]})},"minecraft:nether_fossil":{height:o("height_provider")},"minecraft:ocean_ruin":{biome_temp:t({enum:["cold","warm"]}),large_probability:(0,x.NumberNode)({min:0,max:1}),cluster_probability:(0,x.NumberNode)({min:0,max:1})},"minecraft:ruined_portal":{setups:(0,x.ListNode)((0,x.ObjectNode)({placement:t({enum:["on_land_surface","partly_buried","on_ocean_floor","in_mountain","underground","in_nether"]}),air_pocket_probability:(0,x.NumberNode)({min:0,max:1}),mossiness:(0,x.NumberNode)({min:0,max:1}),overgrown:(0,x.BooleanNode)(),vines:(0,x.BooleanNode)(),can_be_cold:(0,x.BooleanNode)(),replace_with_blackstone:(0,x.BooleanNode)(),weight:(0,x.NumberNode)({min:0})}))},"minecraft:shipwreck":{is_beached:(0,x.Opt)((0,x.BooleanNode)())}}},{context:"structure_feature"}),{default:()=>({type:"minecraft:jigsaw",step:"surface_structures",size:6,max_distance_from_center:80})}))}$e.initStructureSchemas=zt;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});Be.initStructureSetSchemas=void 0;const w=k,Ve=R;function Dt(r,e){const t=w.StringNode.bind(void 0,e),o=w.Reference.bind(void 0,r),d=(0,w.ChoiceNode)([{type:"string",node:t({validator:"resource",params:{pool:"$worldgen/structure_set"}})},{type:"object",node:o("structure_set")}],{choiceContext:"structure_set"});r.register("structure_set",(0,w.ObjectNode)({structures:(0,w.ListNode)((0,w.ObjectNode)({structure:(0,Ve.Tag)({resource:"$worldgen/structure"}),weight:(0,w.NumberNode)({integer:!0,min:1})})),placement:o("structure_placement")},{context:"structure_set"})),r.register("structure_placement",(0,w.Mod)((0,w.ObjectNode)({type:t({validator:"resource",params:{pool:"worldgen/structure_placement"}}),salt:(0,w.NumberNode)({integer:!0,min:0}),frequency_reduction_method:(0,w.Opt)(t({enum:["default","legacy_type_1","legacy_type_2","legacy_type_3"]})),frequency:(0,w.Opt)((0,w.NumberNode)({min:0,max:1})),exclusion_zone:(0,w.Opt)((0,w.ObjectNode)({other_set:d,chunk_count:(0,w.NumberNode)({integer:!0,min:1,max:16})})),locate_offset:(0,w.Opt)((0,w.ListNode)((0,w.NumberNode)({integer:!0,min:-16,max:16}),{minLength:3,maxLength:3})),[w.Switch]:[{push:"type"}],[w.Case]:{"minecraft:concentric_rings":{distance:(0,w.NumberNode)({integer:!0,min:0,max:1023}),spread:(0,w.NumberNode)({integer:!0,min:0,max:1023}),count:(0,w.NumberNode)({integer:!0,min:1,max:4095}),preferred_biomes:(0,Ve.Tag)({resource:"$worldgen/biome"})},"minecraft:random_spread":{spread_type:(0,w.Opt)(t({enum:["linear","triangular"]})),spacing:(0,w.NumberNode)({integer:!0,min:0,max:4096}),separation:(0,w.Mod)((0,w.NumberNode)({integer:!0,min:0,max:4096}),n=>({validate:(c,l,v,_)=>(c.pop().push("spacing").get()<=l&&v.add(c,"error.separation_smaller_spacing"),n.validate(c,l,v,_))}))}}},{context:"structure_placement"}),{default:()=>({type:"minecraft:random_spread",spacing:10,separation:5,salt:Math.floor(Math.random()*2147483647)})}))}Be.initStructureSetSchemas=Dt;var Fe={};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.initSurfaceRuleSchemas=void 0;const P=k;function Rt(r,e){const t=P.StringNode.bind(void 0,e),o=P.Reference.bind(void 0,r);r.register("material_rule",(0,P.Mod)((0,P.ObjectNode)({type:t({validator:"resource",params:{pool:"worldgen/material_rule"}}),[P.Switch]:[{push:"type"}],[P.Case]:{"minecraft:block":{result_state:o("block_state")},"minecraft:condition":{if_true:o("material_condition"),then_run:o("material_rule")},"minecraft:sequence":{sequence:(0,P.ListNode)(o("material_rule"))}}},{context:"material_rule",category:"pool"}),{default:()=>({type:"minecraft:block",result_state:{Name:"minecraft:stone"}})})),r.register("material_condition",(0,P.Mod)((0,P.ObjectNode)({type:t({validator:"resource",params:{pool:"worldgen/material_condition"}}),[P.Switch]:[{push:"type"}],[P.Case]:{"minecraft:biome":{biome_is:(0,P.ListNode)(t({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:noise_threshold":{noise:t({validator:"resource",params:{pool:"$worldgen/noise"}}),min_threshold:(0,P.NumberNode)(),max_threshold:(0,P.NumberNode)()},"minecraft:not":{invert:o("material_condition")},"minecraft:stone_depth":{offset:(0,P.NumberNode)({integer:!0}),surface_type:t({enum:"cave_surface"}),add_surface_depth:(0,P.BooleanNode)(),secondary_depth_range:(0,P.NumberNode)({integer:!0})},"minecraft:vertical_gradient":{random_name:t(),true_at_and_below:o("vertical_anchor"),false_at_and_above:o("vertical_anchor")},"minecraft:water":{offset:(0,P.NumberNode)({integer:!0}),surface_depth_multiplier:(0,P.NumberNode)({integer:!0,min:-20,max:20}),add_stone_depth:(0,P.BooleanNode)()},"minecraft:y_above":{anchor:o("vertical_anchor"),surface_depth_multiplier:(0,P.NumberNode)({integer:!0,min:-20,max:20}),add_stone_depth:(0,P.BooleanNode)()}}},{context:"material_condition"}),{default:()=>({type:"minecraft:biome",is_biome:"minecraft:plains"})}))}Fe.initSurfaceRuleSchemas=Rt;var ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.initTemplatePoolSchemas=void 0;const q=k,Ge=Q;function Tt(r,e){const t=q.Reference.bind(void 0,r),o=q.StringNode.bind(void 0,e);r.register("template_pool",(0,q.Mod)((0,q.ObjectNode)({name:o(),fallback:o(),elements:(0,q.ListNode)(t("template_weighted_element"))},{context:"template_pool"}),{default:()=>({fallback:"minecraft:empty",elements:[{weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}}]})})),r.register("template_weighted_element",(0,q.Mod)((0,q.ObjectNode)({weight:(0,q.NumberNode)({integer:!0,min:1}),element:t("template_element")},{category:"pool"}),{default:()=>({weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}})})),r.register("template_element",(0,q.Mod)((0,q.ObjectNode)({element_type:o({validator:"resource",params:{pool:"worldgen/structure_pool_element"}}),projection:o({enum:["rigid","terrain_matching"]}),[q.Switch]:[{push:"element_type"}],[q.Case]:{"minecraft:feature_pool_element":{feature:o({validator:"resource",params:{pool:"$worldgen/placed_feature"}})},"minecraft:legacy_single_pool_element":{location:o({validator:"resource",params:{pool:"$structure"}}),processors:Ge.Processors},"minecraft:list_pool_element":{elements:(0,q.ListNode)(t("template_element"))},"minecraft:single_pool_element":{location:o({validator:"resource",params:{pool:"$structure"}}),processors:Ge.Processors}}},{context:"template_element",disableSwitchContext:!0}),{default:()=>({element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"})}))}ze.initTemplatePoolSchemas=Tt;var De={};Object.defineProperty(De,"__esModule",{value:!0});De.initWorldPresetSchemas=void 0;const ie=k;function qt(r,e){const t=ie.StringNode.bind(void 0,e),o=ie.Reference.bind(void 0,r);r.register("world_preset",(0,ie.Mod)((0,ie.ObjectNode)({dimensions:(0,ie.MapNode)(t({validator:"resource",params:{pool:"$dimension",isDefinition:!0}}),o("dimension"))},{context:"world_preset"}),{default:()=>({dimensions:{"minecraft:overworld":{type:"minecraft:overworld",generator:{type:"minecraft:noise",biome_source:{type:"minecraft:multi_noise",preset:"minecraft:overworld"},settings:"minecraft:overworld"}},"minecraft:the_nether":{type:"minecraft:the_nether",generator:{type:"minecraft:noise",biome_source:{type:"minecraft:multi_noise",preset:"minecraft:nether"},settings:"minecraft:nether"}},"minecraft:the_end":{type:"minecraft:the_end",generator:{type:"minecraft:noise",biome_source:{type:"minecraft:the_end"},settings:"minecraft:end"}}}})})),r.register("flat_level_generator_preset",(0,ie.Mod)((0,ie.ObjectNode)({display:t({validator:"resource",params:{pool:"item"}}),settings:o("flat_generator_settings")}),{default:()=>({display:"minecraft:grass_block",settings:{lakes:!1,features:!1,biome:"minecraft:plains",structure_overrides:[],layers:[{height:3,block:"minecraft:dirt"},{height:1,block:"minecraft:grass_block"}]}})}))}De.initWorldPresetSchemas=qt;Object.defineProperty(je,"__esModule",{value:!0});je.initWorldgenSchemas=void 0;const It=qe,At=Me,Et=Ce,Wt=Ie,Ut=Pe,Vt=Le,Gt=Q,Ht=$e,Kt=Be,Xt=Fe,Yt=ze,Zt=De;function Jt(r,e){(0,Gt.initProcessorListSchemas)(r,e),(0,Wt.initDensityFunctionSchemas)(r,e),(0,It.initBiomeSchemas)(r,e),(0,At.initCarverSchemas)(r,e),(0,Et.initDecoratorSchemas)(r,e),(0,Ut.initFeatureSchemas)(r,e),(0,Vt.initNoiseSettingsSchemas)(r,e),(0,Ht.initStructureSchemas)(r,e),(0,Kt.initStructureSetSchemas)(r,e),(0,Xt.initSurfaceRuleSchemas)(r,e),(0,Yt.initTemplatePoolSchemas)(r,e),(0,Zt.initWorldPresetSchemas)(r,e)}je.initWorldgenSchemas=Jt;var Re={};Object.defineProperty(Re,"__esModule",{value:!0});Re.initWorldSettingsSchemas=void 0;const J=k;function Qt(r,e){const t=J.Reference.bind(void 0,r),o=J.StringNode.bind(void 0,e);r.register("world_settings",(0,J.Mod)((0,J.ObjectNode)({generate_features:(0,J.BooleanNode)(),bonus_chest:(0,J.BooleanNode)(),seed:(0,J.NumberNode)({integer:!0}),dimensions:(0,J.MapNode)(o({validator:"resource",params:{pool:"$dimension"}}),t("dimension"))},{context:"world_settings"}),{default:()=>{const d=Math.floor(Math.random()*4294967296)-2147483648;return{generate_features:!0,bonus_chest:!1,seed:d,dimensions:{"minecraft:overworld":{type:"minecraft:overworld",generator:{type:"minecraft:noise",seed:d,biome_source:{type:"minecraft:multi_noise",preset:"minecraft:overworld"},settings:"minecraft:overworld"}},"minecraft:the_nether":{type:"minecraft:the_nether",generator:{type:"minecraft:noise",seed:d,biome_source:{type:"minecraft:multi_noise",preset:"minecraft:nether"},settings:"minecraft:nether"}},"minecraft:the_end":{type:"minecraft:the_end",generator:{type:"minecraft:noise",seed:d,biome_source:{type:"minecraft:the_end",seed:d},settings:"minecraft:end"}}}}}}))}Re.initWorldSettingsSchemas=Qt;Object.defineProperty(le,"__esModule",{value:!0});le.initSchemas=void 0;const er=me,tr=_e,rr=ge,or=R,ir=be,nr=Ne,ar=ye,cr=he,dr=ve,sr=Oe,lr=ke,mr=xe,_r=we,ur=Se,pr=je,fr=Re;function gr(r,e){(0,or.initCommonSchemas)(r,e),(0,rr.initChatTypeSchemas)(r,e),(0,er.initAdvancementSchemas)(r,e),(0,tr.initAssetsSchemas)(r,e),(0,ir.initConditionSchemas)(r,e),(0,ar.initDimensionTypeSchemas)(r,e),(0,nr.initDimensionSchemas)(r,e),(0,cr.initItemModifierSchemas)(r,e),(0,dr.initLootTableSchemas)(r,e),(0,sr.initPackMcmetaSchemas)(r,e),(0,lr.initPredicatesSchemas)(r,e),(0,mr.initRecipeSchemas)(r,e),(0,_r.initTagsSchemas)(r,e),(0,ur.initTextComponentSchemas)(r,e),(0,pr.initWorldgenSchemas)(r,e),(0,fr.initWorldSettingsSchemas)(r,e)}le.initSchemas=gr;var br=ne&&ne.__createBinding||(Object.create?function(r,e,t,o){o===void 0&&(o=t);var d=Object.getOwnPropertyDescriptor(e,t);(!d||("get"in d?!e.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,o,d)}:function(r,e,t,o){o===void 0&&(o=t),r[o]=e[t]}),Nr=ne&&ne.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),yr=ne&&ne.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&br(e,r,t);return Nr(e,r),e};Object.defineProperty(X,"__esModule",{value:!0});var He=X.getSchemas=Ye=X.getCollections=Xe=X.lootContext=void 0;const Ke=k,hr=se,vr=le;var Xe=X.lootContext=yr(I);function Or(){const r=new Ke.CollectionRegistry;return(0,hr.initCollections)(r),r}var Ye=X.getCollections=Or;function kr(r){const e=new Ke.SchemaRegistry;return(0,vr.initSchemas)(e,r),e}He=X.getSchemas=kr;var jr=rt({__proto__:null,get getSchemas(){return He},get getCollections(){return Ye},get lootContext(){return Xe},default:X},[X]);export{jr as i};
//# sourceMappingURL=index.cd3d7116.js.map