PK kBT:V- - pack.mcmeta{
"pack": {
"pack_format": 8,
"description": "A Gamemode 4 Module"
},
"module_name": "Dangerous Dungeons",
"module_id": "dangerous_dungeons",
"site_description": "A custom terrain expansion pack that adds new types of dungeons underground.",
"site_categories": [
"Custom Terrain"
],
"video_link": "",
"wiki_link": "https://wiki.gm4.co/wiki/Orbis/Dangerous_Dungeons",
"required_modules": [
"orbis"
],
"recommended_modules": [
"tower_structures",
"cooler_caves"
],
"credits": {
"Creator": [
{
"name": "Sparks",
"links": [
"https://twitter.com/SparksTheGamer"
]
}
],
"Updated by": [
{
"name": "Misode",
"links": [
"https://twitter.com/misode_"
]
}
]
}
}
PK eBT`nk k " data/gm4/functions/init.mcfunction#This function runs if gamemode 4 has never been used before.
#It adds global scoreboards and other gamemode 4 base code.
tellraw @a {"text":"[GM4]: Welcome to Gamemode 4. Initialising...","color":"green"}
execute unless entity @p run say [GM4]: Welcome to Gamemode 4. Initialising...
# ============================ SCOREBOARDS ============================
scoreboard objectives add gm4_clock_tick dummy
scoreboard objectives add gm4_modules dummy
# =========================== FAKE ENTITIES ===========================
scoreboard players set gm4 gm4_up_check 1
scoreboard players set update_happened gm4_up_check 1
PK eBT#(d d ) data/gm4/functions/out_of_date.mcfunctiontellraw @a [{"text":"[GM4]: ","color":"aqua"},{"text":"Some of your modules are outdated: ","color":"white"},{"selector":"@e[type=area_effect_cloud,tag=gm4_update_message]","color":"gold","insertion":"/tellraw @p %s"}]
tellraw @a [{"text":"[GM4]: ","color":"aqua"},{"text":"Click to visit our site with the latest versions.","color":"white","underlined":true,"clickEvent":{"action":"open_url","value":"https://www.gm4.co/modules/"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click to visit gm4.co/modules/","color":"aqua"}]}}}]
kill @e[type=area_effect_cloud,tag=gm4_update_message]
PK eBT " data/gm4/functions/tick.mcfunction#runs every tick
scoreboard players add current_tick gm4_clock_tick 1
execute if score current_tick gm4_clock_tick matches 16.. run scoreboard players set current_tick gm4_clock_tick 0
function #gm4:pulse_check
#prints scheduled out-of-date messages to chat
execute if score current_tick gm4_clock_tick matches 0 if entity @e[limit=1,tag=gm4_update_message,type=area_effect_cloud] if entity @a[limit=1] run function gm4:out_of_date
PK eBT/ $ data/gm4/functions/update.mcfunction#This function runs every time a world/server is restarted or /reload is run.
#It checks for new modules, tells them to initialise and informs the player.
tellraw @a {"text":"[GM4]: Checking for updates...","color":"aqua"}
execute unless entity @p run say [GM4]: Checking for updates...
#set update_happened to false until proven otherwise
scoreboard objectives add gm4_up_check dummy
scoreboard players set update_happened gm4_up_check 0
#check if GM4 has been used here before
execute unless score gm4 gm4_up_check matches 1.. run function gm4:init
#get all modules to check if they need installing
scoreboard players set installed_modules gm4_up_check 0
function #gm4:init_check
#announce success of update if one happened.
execute if score update_happened gm4_up_check matches 0 run tellraw @a {"text":"[GM4]: No updates found.","color":"aqua"}
execute unless entity @p run execute if score update_happened gm4_up_check matches 0 run say [GM4]: No updates found.
execute if score update_happened gm4_up_check matches 1 run tellraw @a {"text":"[GM4]: Updates completed.","color":"aqua"}
execute unless entity @p run execute if score update_happened gm4_up_check matches 1 run say [GM4]: Updates completed.
PK eBTb: : ' data/gm4/tags/functions/init_check.json{
"values": [
"dangerous_dungeons:init_check"
]
}
PK eBTӮ' ' ' data/minecraft/tags/functions/load.json{
"values": [
"gm4:update"
]
}
PK eBT!b@% % ' data/minecraft/tags/functions/tick.json{
"values": [
"gm4:tick"
]
}
PK kBTFS[# # 1 data/dangerous_dungeons/functions/init.mcfunction#announce module installation
tellraw @a[gamemode=creative] ["",{"text":"[GM4]: Installing Dangerous Dungeons..."}]
execute unless entity @p run say GM4: Installing Dangerous Dungeons...
#declare and initialise scoreboards and settings
scoreboard players set update_happened gm4_up_check 1
scoreboard players set dangerous_dungeons gm4_modules 1
scoreboard players set dangerous_dungeons gm4_clock_tick 0
#announce success
tellraw @a[gamemode=creative] ["",{"text":"[GM4]: Dangerous Dungeons Installed!"}]
execute unless entity @p run say GM4: Dangerous Dungeons Installed!
#check other modules to make sure they're up to date.
# Module update list
kill @e[tag=gm4_update_message]
execute if score bat_grenades gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Bat Grenades"",Tags:["gm4_update_message"],Duration:2000}
execute if score better_armour_stands gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Better Armour Stands"",Tags:["gm4_update_message"],Duration:2000}
execute if score better_fire gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Better Fire"",Tags:["gm4_update_message"],Duration:2000}
execute if score block_compressors gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Block Compressors"",Tags:["gm4_update_message"],Duration:2000}
execute if score boots_of_ostara gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Boots of Ostara"",Tags:["gm4_update_message"],Duration:2000}
execute if score cement_mixers gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Cement Mixers"",Tags:["gm4_update_message"],Duration:2000}
execute if score chairs gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Chairs"",Tags:["gm4_update_message"],Duration:2000}
execute if score cooler_caves gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Cooler Caves"",Tags:["gm4_update_message"],Duration:2000}
execute if score custom_crafters gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Custom Crafters"",Tags:["gm4_update_message"],Duration:2000}
execute if score dangerous_dungeons gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Dangerous Dungeons"",Tags:["gm4_update_message"],Duration:2000}
execute if score desire_lines gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Desire Lines"",Tags:["gm4_update_message"],Duration:2000}
execute if score disassemblers gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Disassemblers"",Tags:["gm4_update_message"],Duration:2000}
execute if score enchantment_extractors gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Enchantment Extractors"",Tags:["gm4_update_message"],Duration:2000}
execute if score ender_hoppers gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Ender Hoppers"",Tags:["gm4_update_message"],Duration:2000}
execute if score enderman_support_class gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Enderman Support Class"",Tags:["gm4_update_message"],Duration:2000}
execute if score heart_canisters gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Heart Canisters"",Tags:["gm4_update_message"],Duration:2000}
execute if score ink_spitting_squid gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Ink Spitting Squid"",Tags:["gm4_update_message"],Duration:2000}
execute if score lightning_rods gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Lightning Rods"",Tags:["gm4_update_message"],Duration:2000}
execute if score liquid_tanks gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Liquid Tanks"",Tags:["gm4_update_message"],Duration:2000}
execute if score master_crafting gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Master Crafting"",Tags:["gm4_update_message"],Duration:2000}
execute if score metallurgy gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Metallurgy"",Tags:["gm4_update_message"],Duration:2000}
execute if score mob_conversion gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Mob Conversion"",Tags:["gm4_update_message"],Duration:2000}
execute if score mysterious_midnights gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Mysterious Midnights"",Tags:["gm4_update_message"],Duration:2000}
execute if score note_block_interface gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Note Block Interface"",Tags:["gm4_update_message"],Duration:2000}
execute if score orbis gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Orbis"",Tags:["gm4_update_message"],Duration:2000}
execute if score orbis_pre_gen gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Custom Terrain Pre-gen"",Tags:["gm4_update_message"],Duration:2000}
execute if score particles_pack gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Particles Pack"",Tags:["gm4_update_message"],Duration:2000}
execute if score phantom_scarecrows gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Phantom Scarecrows"",Tags:["gm4_update_message"],Duration:2000}
execute if score pig_tractors gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Pig Tractors"",Tags:["gm4_update_message"],Duration:2000}
execute if score poses_pack gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Poses Pack"",Tags:["gm4_update_message"],Duration:2000}
execute if score potion_liquids gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Potion Liquids"",Tags:["gm4_update_message"],Duration:2000}
execute if score potion_swords gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Potion Swords"",Tags:["gm4_update_message"],Duration:2000}
execute if score record_crafting gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Record Crafting"",Tags:["gm4_update_message"],Duration:2000}
execute if score scuba_gear gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Scuba Gear"",Tags:["gm4_update_message"],Duration:2000}
execute if score shroomites gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Shroomites"",Tags:["gm4_update_message"],Duration:2000}
execute if score spawner_minecarts gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Spawner Minecarts"",Tags:["gm4_update_message"],Duration:2000}
execute if score speed_paths gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Speed Paths"",Tags:["gm4_update_message"],Duration:2000}
execute if score standard_crafting gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Standard Crafting"",Tags:["gm4_update_message"],Duration:2000}
execute if score sunken_treasure gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Sunken Treasure"",Tags:["gm4_update_message"],Duration:2000}
execute if score sweethearts gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Sweethearts"",Tags:["gm4_update_message"],Duration:2000}
execute if score tower_structures gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Tower Structures"",Tags:["gm4_update_message"],Duration:2000}
execute if score trapped_signs gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Trapped Signs"",Tags:["gm4_update_message"],Duration:2000}
execute if score undead_players gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Undead Players"",Tags:["gm4_update_message"],Duration:2000}
execute if score vertical_rails gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Vertical Rails"",Tags:["gm4_update_message"],Duration:2000}
execute if score weighted_armour gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Weighted Armour"",Tags:["gm4_update_message"],Duration:2000}
execute if score xp_storage gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""XP Storage"",Tags:["gm4_update_message"],Duration:2000}
execute if score zauber_cauldrons gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Zauber Cauldrons"",Tags:["gm4_update_message"],Duration:2000}
execute if score ziprails gm4_modules matches ..0 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Ziprails"",Tags:["gm4_update_message"],Duration:2000}
PK kBT΅[ 7 data/dangerous_dungeons/functions/init_check.mcfunction#unless the module is already initialized
execute unless score dangerous_dungeons gm4_modules matches 1.. run function dangerous_dungeons:init
scoreboard players add installed_modules gm4_up_check 1
PK eBTB:/ 2 data/dangerous_dungeons/functions/spawn.mcfunctionexecute if entity @s[tag=gm4_dangerous_dungeons_default] run function dangerous_dungeons:spawn/default
execute if entity @s[tag=gm4_dangerous_dungeons_ocean] run function dangerous_dungeons:spawn/ocean
execute if entity @s[tag=gm4_dangerous_dungeons_desert] run function dangerous_dungeons:spawn/desert
execute if entity @s[tag=gm4_dangerous_dungeons_snow] run function dangerous_dungeons:spawn/snow
execute if entity @s[tag=gm4_dangerous_dungeons_mesa] run function dangerous_dungeons:spawn/mesa
PK eBT>%u u 7 data/dangerous_dungeons/functions/spawn_init.mcfunction# spawn a dungeon based on the biome type.
execute if score structure_height gm4_count matches ..50 if entity @s[tag=gm4_dungeon,scores={gm4_orbis_biome=0}] run summon area_effect_cloud ~ ~ ~ {Tags:["gm4_orbis_spawn_marker","gm4_dangerous_dungeons_default"]}
execute if score structure_height gm4_count matches ..50 unless block ~ 3 ~ bedrock if entity @s[tag=gm4_dungeon,scores={gm4_orbis_biome=1}] run summon area_effect_cloud ~ ~ ~ {Tags:["gm4_orbis_spawn_marker","gm4_dangerous_dungeons_ocean"]}
execute if score structure_height gm4_count matches ..50 if entity @s[tag=gm4_dungeon,scores={gm4_orbis_biome=2}] run summon area_effect_cloud ~ ~ ~ {Tags:["gm4_orbis_spawn_marker","gm4_dangerous_dungeons_desert"]}
execute if score structure_height gm4_count matches ..50 if entity @s[tag=gm4_dungeon,scores={gm4_orbis_biome=3}] run summon area_effect_cloud ~ ~ ~ {Tags:["gm4_orbis_spawn_marker","gm4_dangerous_dungeons_snow"]}
execute if score structure_height gm4_count matches ..50 if entity @s[tag=gm4_dungeon,scores={gm4_orbis_biome=4}] run summon area_effect_cloud ~ ~ ~ {Tags:["gm4_orbis_spawn_marker","gm4_dangerous_dungeons_mesa"]}
PK eBTK : data/dangerous_dungeons/functions/spawn/default.mcfunctionsetblock ~ ~ ~ structure_block{ignoreEntities:0b,posX:-8,mode:"LOAD",posY:-7,posZ:-8,showair:0b,name:"dangerous_dungeons:default",showboundingbox:0b}
setblock ~ ~1 ~ redstone_block
function orbis:structure/finish
PK eBT^r 9 data/dangerous_dungeons/functions/spawn/desert.mcfunctionsetblock ~ ~ ~ structure_block{ignoreEntities:0b,posX:-8,mode:"LOAD",posY:-7,posZ:-8,showair:0b,name:"dangerous_dungeons:desert",showboundingbox:0b}
setblock ~ ~1 ~ redstone_block
function orbis:structure/finish
PK eBT_ 7 data/dangerous_dungeons/functions/spawn/mesa.mcfunctionsetblock ~ ~ ~ structure_block{ignoreEntities:0b,posX:-8,mode:"LOAD",posY:-7,posZ:-8,showair:0b,name:"dangerous_dungeons:mesa",showboundingbox:0b}
setblock ~ ~1 ~ redstone_block
function orbis:structure/finish
PK eBT
>! 8 data/dangerous_dungeons/functions/spawn/ocean.mcfunctionsetblock ~ ~ ~ structure_block{ignoreEntities:0b,posX:-8,mode:"LOAD",posY:-7,posZ:-8,showair:0b,name:"dangerous_dungeons:ocean",showboundingbox:0b}
setblock ~ ~1 ~ redstone_block
function orbis:structure/finish
PK eBT 7 data/dangerous_dungeons/functions/spawn/snow.mcfunctionsetblock ~ ~ ~ structure_block{ignoreEntities:0b,posX:-8,mode:"LOAD",posY:-7,posZ:-8,showair:0b,name:"dangerous_dungeons:snow",showboundingbox:0b}
setblock ~ ~1 ~ redstone_block
function orbis:structure/finish
PK eBT8j j . data/dangerous_dungeons/structures/default.nbt [ O.y귪?E %b
HCG
F3n#`ÚV
`k-YB}̌K<Ҹ}~yS9էapaCxy0_|yaxw_{Cw_^_wsd;w7|ww3r{o^_K_xʔrysPSo~o㰾!~p~9|Wkw_ܽ~4o\~w~xݫ7WC<9?z'|/_~puw;?xy?_;_^k~W^\xo_\~͈'gs0]?NOW}߽}Ͽ}Ó9yį=>+O-<77_|MJ߿ůE_9s&'T߾~SAZ{7w/uSWk75gׯi-'?GWׁ?gj?O~Qϱw7k?í6jam]>'o 0?ucYs1sƌ r , N&SYuΎ\ smęA.؎A DPOq2\Z@auۚ^mͶ 38lA.xPO q"0 `\ĩk}cz=5383c,@= Nq2W*ȵ 3QǶۚ~L@2 0@=IdPsq*0װ^8:wSq&`fˀ8cz=ry+8ԓ@) WkXǯc[뱭ǔ@=3c@r '@U@
Y@aQc* x`'8 `\ ̰֭~VnMo?ۏ\3e ƃ\=8 j. N5/^l㜀;wSqfPƂz0
N&uLo?`*0Kc3豭;`"0czsaĜ^tLo.8`<0
12Lf֚ZޚeƎPqfPƂz0
N&uL煊S,ӻGyc[[_D`*0yXU77.e"0<Ը7.e"0|~x\ sfNř;wSƂz0
N&uL^`*0gX$֎2U*3\308@1s$+S@=Y9;̰ΫGa/k̩czkG 䚁1 Ɓ\ rŎ+S@=Yk֎2zU=VkGav9uLo(3\308@1re`
80:?+sf옽8s-űx' I{L\9;yfXUQfXav93v9Z;[wΦ֎ǁ8 D`R֎ SA=3H2zUeZ̰Q;QkgkmQ5ǂzA L&uLo0Գzu^'pnsdNwnsgqfǀ8q TL5g+z6gm^ǂzZs8;QkGřAXǁ8czkGʼn$Psq
8gXUe:̰^kU2:j(ssvT1 q;vTL5g+zf1_[ӛ/ D`Qcߚط9|@Û2cz[{QqAs*Ʈ ӻG8$\t̑;9sUr˂8A rE`0S@
1{>s1{>2
j>Skgk>OƥLf5Pښϸq)SY@ښ{u2 qǃ\$`28c>u[Uv,aWvfj\T`PSښϯq)SY@Wc
ԽN:f@T.8PIdPOq*05}fY͗ <{;gkzqN{=