PK NBTQdF pack.mcmeta{ "pack": { "pack_format": 8, "description": "A Gamemode 4 Module" }, "module_name": "Mob Conversion", "module_id": "mob_conversion", "site_description": "Convert cows, pigmen and witches into other mobs.", "site_categories": [], "video_link": "", "wiki_link": "https://wiki.gm4.co/wiki/Mob_Conversion", "required_modules": [], "recommended_modules": [ "shroomites" ], "credits": { "Creator": [ { "name": "torbray", "links": [ "https://twitter.com/torbray00" ] } ], "Updated By": [ { "name": "Sparks", "links": [ "https://twitter.com/SparksTheGamer" ] }, { "name": "Bloo", "links": [ "https://twitter.com/Bloo_dev" ] }, { "name": "SpecialBuilder32", "links": [ "https://twitter.com/SpecialBuilder" ] } ] } } PK GBT[@ɺ " 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 [{"translate": "%1$s%3427655$s","with":["[GM4]: ",{"translate": "text.gm4.prefix"}],"color":"green"},{"translate": "%1$s%3427655$s","with":["Welcome to Gamemode 4. Initialising...",{"translate": "text.gm4.modules.init"}],"color":"green"}] execute unless entity @a[limit=1] run say [GM4]: Welcome to Gamemode 4. Initialising... #declare and initialise scoreboards and settings scoreboard objectives add gm4_clock_tick dummy scoreboard objectives add gm4_modules dummy scoreboard players set gm4 gm4_up_check 1 scoreboard players set update_happened gm4_up_check 1 PK GBTB| " data/gm4/functions/load.mcfunction#This function runs every time a world/server is restarted or /reload is run. #It waits for a player to be online before checking for updates. execute if entity @a[limit=1] run function gm4:update execute unless entity @a[limit=1] run schedule function gm4:load 1t PK GBT~ ) data/gm4/functions/out_of_date.mcfunction#print out-of-date message tellraw @a [{"translate":"%1$s%3427655$s","with":["[GM4]: ",{"translate":"text.gm4.prefix"}],"color":"aqua"},{"translate":"%1$s%3427655$s","with":[["Some of your modules are outdated: ",{"selector":"@e[type=area_effect_cloud,tag=gm4_update_message]","color":"gold"}],{"translate":"text.gm4.modules.outdated","with":[{"selector":"@e[type=area_effect_cloud,tag=gm4_update_message]","color":"gold"}]}]}] tellraw @a [{"translate": "%1$s%3427655$s","with":["[GM4]: ",{"translate": "text.gm4.prefix"}],"color":"aqua"},{"translate": "%1$s%3427655$s","with":["Click to visit our site with the latest versions.",{"translate": "text.gm4.modules.outdated_link"}],"color":"white","underlined":true,"clickEvent":{"action":"open_url","value":"https://www.gm4.co/modules/"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"translate":"%1$s%3427655$s","with":["Click to visit gm4.co/modules/",{"translate":"text.gm4.modules.update.hover_text"}],"color":"aqua"}]}}}] kill @e[type=area_effect_cloud,tag=gm4_update_message] PK GBT0,Z " 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 PK GBTΦ $ data/gm4/functions/update.mcfunction#This function runs every time after world/server is restarted or /reload is run and a player is online. #It checks for new modules, tells them to initialise and informs the player. tellraw @a [{"translate": "%1$s%3427655$s","with":["[GM4]: ",{"translate": "text.gm4.prefix"}],"color":"aqua"},{"translate": "%1$s%3427655$s","with":["Checking for updates...",{"translate": "text.gm4.modules.update.check"}],"color":"aqua"}] execute unless entity @a[limit=1] 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 [{"translate": "%1$s%3427655$s","with":["[GM4]: ",{"translate": "text.gm4.prefix"}],"color":"aqua"},{"translate": "%1$s%3427655$s","with":["No updates found.",{"translate": "text.gm4.modules.update.none_found"}],"color":"aqua"}] execute unless entity @a[limit=1] 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 [{"translate": "%1$s%3427655$s","with":["[GM4]: ",{"translate": "text.gm4.prefix"}],"color":"aqua"},{"translate": "%1$s%3427655$s","with":["Updates completed.",{"translate": "text.gm4.modules.update.completed"}],"color":"aqua"}] execute unless entity @a[limit=1] run execute if score update_happened gm4_up_check matches 1 run say [GM4]: Updates completed. #prints scheduled out-of-date messages to chat execute if score current_tick gm4_clock_tick matches 0 if entity @a[limit=1] if entity @e[type=area_effect_cloud,tag=gm4_update_message,limit=1] run function gm4:out_of_date PK GBTD D ' data/gm4/tags/functions/init_check.json{ "values":[ "mob_conversion:init_check" ] } PK GBT\E E ( data/gm4/tags/functions/pulse_check.json{ "values":[ "mob_conversion:pulse_check" ] } PK GBT_, , ' data/minecraft/tags/functions/load.json{ "values":[ "gm4:load" ] } PK GBT"s, , ' data/minecraft/tags/functions/tick.json{ "values":[ "gm4:tick" ] } PK GBT 5 data/mob_conversion/functions/consume_item.mcfunction# @s = item that needs 1 removed from Count # run from items in convert files # store count in scoreboard execute store result score @s gm4_mob_con_data run data get entity @s Item.Count # remove 1 scoreboard players remove @s gm4_mob_con_data 1 # store back into nbt execute store result entity @s Item.Count byte 1 run scoreboard players get @s gm4_mob_con_data # Spigot fix kill @s[scores={gm4_mob_con_data=0}] # remove the tag tag @s remove gm4_gapplePK GBT': : 4 data/mob_conversion/functions/convert_cow.mcfunction#@s = cows with slowness needing conversion at @s #run from main summon mooshroom particle explosion ~ ~.5 ~ 1 .3 1 0 1 playsound minecraft:entity.zombie_villager.converted neutral @a[distance=..8] execute as @e[type=item,limit=1,nbt={Item:{id:"minecraft:red_mushroom"}},distance=..3,sort=nearest] run function mob_conversion:consume_item execute as @e[type=item,limit=1,nbt={Item:{id:"minecraft:brown_mushroom"}},distance=..3,sort=nearest] run function mob_conversion:consume_item data merge entity @s {DeathTime:19s,Health:0f,DeathLootTable:"minecraft:empty"} PK GBT`G 7 data/mob_conversion/functions/convert_pigman.mcfunction#@s = pigmen with swiftness needing conversion #run from main summon pig particle explosion ~ ~.5 ~ 1 .3 1 0 1 playsound minecraft:entity.zombie_villager.converted neutral @a[distance=..8] execute as @e[type=item,limit=1,nbt={Item:{id:"minecraft:golden_carrot"}},distance=..3,sort=nearest] run function mob_conversion:consume_item data merge entity @s {DeathTime:19s,Health:0f,DeathLootTable:"minecraft:empty"} PK GBT)i i 6 data/mob_conversion/functions/convert_witch.mcfunction# @s = witch with weakness needing conversion # run from main summon villager ~ ~ ~ {Tags:["gm4_mob_conversion_brewer","gm4_mob_conversion_needs_init"],VillagerData:{profession:"minecraft:cleric", level:5},Xp:1,CustomName:'{"translate":"%1$s%3427655$s","with":["Brewer",{"translate": "entity.gm4.brewer"}]}',HandItems:[{},{id:"minecraft:dirt",Count:1b,tag:{Type:"major_positive",Value:20}}], Offers:{Recipes:[{rewardExp:1b,buy:{id:"minecraft:emerald",Count:7b},sell:{id:"potion",Count:1b,tag:{Potion:"minecraft:healing"}},priceMultiplier:0.05f},{rewardExp:1b,buy:{id:"minecraft:emerald",Count:7b},sell:{id:"potion",Count:1b,tag:{Potion:"minecraft:slowness"}},priceMultiplier:0.05f},{rewardExp:1b,buy:{id:"minecraft:emerald",Count:7b},sell:{id:"potion",Count:1b,tag:{Potion:"minecraft:poison"}},priceMultiplier:0.05f},{rewardExp:1b,buy:{id:"minecraft:emerald",Count:7b},sell:{id:"potion",Count:1b,tag:{Potion:"minecraft:weakness"}},priceMultiplier:0.05f},{rewardExp:1b,buy:{id:"minecraft:emerald",Count:7b},sell:{id:"potion",Count:1b,tag:{Potion:"minecraft:harming"}},priceMultiplier:0.05f},{rewardExp:1b,buy:{id:"minecraft:emerald",Count:7b},sell:{id:"potion",Count:1b,tag:{Potion:"minecraft:fire_resistance"}},priceMultiplier:0.05f},{rewardExp:1b,buy:{id:"minecraft:emerald",Count:7b},sell:{id:"potion",Count:1b,tag:{Potion:"minecraft:water_breathing"}},priceMultiplier:0.05f},{rewardExp:1b,buy:{id:"minecraft:emerald",Count:7b},sell:{id:"potion",Count:1b,tag:{Potion:"minecraft:swiftness"}},priceMultiplier:0.05f}]}} particle explosion ~ ~.5 ~ 1 .3 1 0 1 playsound minecraft:entity.zombie_villager.converted neutral @a[distance=..8] # Mark the gapple tag @e[type=item,limit=1,nbt={Item:{id:"minecraft:golden_apple"}},distance=..3,sort=nearest] add gm4_gapple # Randomise the number of emeralds each potion costs execute as @e[type=villager,tag=gm4_mob_conversion_needs_init,limit=1,distance=..1] run function mob_conversion:initialise_brewer execute as @e[type=item,limit=1,tag=gm4_gapple,distance=..3] run function mob_conversion:consume_item data merge entity @s {DeathTime:19s,Health:0f,DeathLootTable:"minecraft:empty"} PK NBTG5Q, Q, - data/mob_conversion/functions/init.mcfunction#announce module installation tellraw @a[gamemode=creative] [{"translate":"%1$s%3427655$s","with":["[GM4]: ",{"translate":"text.gm4.prefix"}]},{"translate":"%1$s%3427655$s","with":["Installing Mob Conversion...",{"translate":"text.gm4.modules.update.installing","with":[{"translate":"module.gm4.mob_conversion"}]}]}] execute unless entity @a[limit=1] run say GM4: Installing Mob Conversion... #declare and initialise scoreboards and settings scoreboard players set update_happened gm4_up_check 1 scoreboard players set mob_conversion gm4_modules 14001 scoreboard players set mob_conversion gm4_clock_tick 0 scoreboard objectives add gm4_mob_con_data dummy #announce success tellraw @a[gamemode=creative] [{"translate":"%1$s%3427655$s","with":["[GM4]: ",{"translate":"text.gm4.prefix"}]},{"translate":"%1$s%3427655$s","with":["Mob Conversion Installed!",{"translate":"text.gm4.modules.update.installed","with":[{"translate":"module.gm4.mob_conversion"}]}]}] execute unless entity @a[limit=1] run say GM4: Mob Conversion Installed! #check other modules to make sure they're up to date. # Module update list kill @e[tag=gm4_update_message] execute if score ambrosia gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Ambrosia"",Tags:["gm4_update_message"],Duration:2000} execute if score bat_grenades gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Bat Grenades"",Tags:["gm4_update_message"],Duration:2000} execute if score better_armour_stands gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Better Armour Stands"",Tags:["gm4_update_message"],Duration:2000} execute if score better_fire gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Better Fire"",Tags:["gm4_update_message"],Duration:2000} execute if score block_compressors gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Block Compressors"",Tags:["gm4_update_message"],Duration:2000} execute if score boots_of_ostara gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Boots of Ostara"",Tags:["gm4_update_message"],Duration:2000} execute if score cement_mixers gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Cement Mixers"",Tags:["gm4_update_message"],Duration:2000} execute if score chairs gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Chairs"",Tags:["gm4_update_message"],Duration:2000} execute if score cooler_caves gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Cooler Caves"",Tags:["gm4_update_message"],Duration:2000} execute if score crossbow_cartridges gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Crossbow Cartridges"",Tags:["gm4_update_message"],Duration:2000} execute if score custom_crafters gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Custom Crafters"",Tags:["gm4_update_message"],Duration:2000} execute if score dangerous_dungeons gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Dangerous Dungeons"",Tags:["gm4_update_message"],Duration:2000} execute if score desire_lines gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Desire Lines"",Tags:["gm4_update_message"],Duration:2000} execute if score disassemblers gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Disassemblers"",Tags:["gm4_update_message"],Duration:2000} execute if score enchantment_extractors gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Enchantment Extractors"",Tags:["gm4_update_message"],Duration:2000} execute if score end_fishing gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""End Fishing"",Tags:["gm4_update_message"],Duration:2000} execute if score ender_hoppers gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Ender Hoppers"",Tags:["gm4_update_message"],Duration:2000} execute if score enderman_support_class gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Enderman Support Class"",Tags:["gm4_update_message"],Duration:2000} execute if score heart_canisters gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Heart Canisters"",Tags:["gm4_update_message"],Duration:2000} execute if score holographic_tags gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Holographic Tags"",Tags:["gm4_update_message"],Duration:2000} execute if score ink_spitting_squid gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Ink Spitting Squid"",Tags:["gm4_update_message"],Duration:2000} execute if score lightning_rods gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Lightning Rods"",Tags:["gm4_update_message"],Duration:2000} execute if score liquid_minecarts gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Liquid Minecarts"",Tags:["gm4_update_message"],Duration:2000} execute if score liquid_tanks gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Liquid Tanks"",Tags:["gm4_update_message"],Duration:2000} execute if score master_crafting gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Master Crafting"",Tags:["gm4_update_message"],Duration:2000} execute if score mending_tanks gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Mending Tanks"",Tags:["gm4_update_message"],Duration:2000} execute if score metallurgy gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Metallurgy"",Tags:["gm4_update_message"],Duration:2000} execute if score mob_conversion gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Mob Conversion"",Tags:["gm4_update_message"],Duration:2000} execute if score moneo_shamir gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Moneo Shamir"",Tags:["gm4_update_message"],Duration:2000} execute if score mysterious_midnights gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Mysterious Midnights"",Tags:["gm4_update_message"],Duration:2000} execute if score note_block_interface gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Note Block Interface"",Tags:["gm4_update_message"],Duration:2000} execute if score orbis gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Orbis"",Tags:["gm4_update_message"],Duration:2000} execute if score orbis_pre_gen gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Orbis Pre-gen"",Tags:["gm4_update_message"],Duration:2000} execute if score particles_pack gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Particles Pack"",Tags:["gm4_update_message"],Duration:2000} execute if score phantom_scarecrows gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Phantom Scarecrows"",Tags:["gm4_update_message"],Duration:2000} execute if score pig_tractors gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Pig Tractors"",Tags:["gm4_update_message"],Duration:2000} execute if score poses_pack gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Poses Pack"",Tags:["gm4_update_message"],Duration:2000} execute if score potion_liquids gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Potion Liquids"",Tags:["gm4_update_message"],Duration:2000} execute if score potion_swords gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Potion Swords"",Tags:["gm4_update_message"],Duration:2000} execute if score record_crafting gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Record Crafting"",Tags:["gm4_update_message"],Duration:2000} execute if score relocators gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Relocators"",Tags:["gm4_update_message"],Duration:2000} execute if score scuba_gear gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Scuba Gear"",Tags:["gm4_update_message"],Duration:2000} execute if score shroomites gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Shroomites"",Tags:["gm4_update_message"],Duration:2000} execute if score spawner_minecarts gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Spawner Minecarts"",Tags:["gm4_update_message"],Duration:2000} execute if score speed_paths gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Speed Paths"",Tags:["gm4_update_message"],Duration:2000} execute if score standard_crafting gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Standard Crafting"",Tags:["gm4_update_message"],Duration:2000} execute if score sunken_treasure gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Sunken Treasure"",Tags:["gm4_update_message"],Duration:2000} execute if score tinkering_compressors gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Tinkering Compressors"",Tags:["gm4_update_message"],Duration:2000} execute if score tower_structures gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Tower Structures"",Tags:["gm4_update_message"],Duration:2000} execute if score trapped_signs gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Trapped Signs"",Tags:["gm4_update_message"],Duration:2000} execute if score undead_players gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Undead Players"",Tags:["gm4_update_message"],Duration:2000} execute if score vertical_rails gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Vertical Rails"",Tags:["gm4_update_message"],Duration:2000} execute if score weighted_armour gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Weighted Armour"",Tags:["gm4_update_message"],Duration:2000} execute if score xp_storage gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""XP Storage"",Tags:["gm4_update_message"],Duration:2000} execute if score zauber_cauldrons gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Zauber Cauldrons"",Tags:["gm4_update_message"],Duration:2000} execute if score zauber_liquids gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Zauber Liquids"",Tags:["gm4_update_message"],Duration:2000} execute if score ziprails gm4_modules matches ..14000 run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:""Ziprails"",Tags:["gm4_update_message"],Duration:2000} PK NBT, 3 data/mob_conversion/functions/init_check.mcfunction#unless the module is already initialized execute unless score mob_conversion gm4_modules matches 14001.. run function mob_conversion:init scoreboard players add installed_modules gm4_up_check 1 PK GBTr, : data/mob_conversion/functions/initialise_brewer.mcfunction# @s = potion trading cleric villager converted from witch. # run from convert_witch # randomise recipes execute store result entity @s Offers.Recipes[0].buy.Count byte 1 run data get entity @e[sort=random,limit=1] UUIDLeast -.0000000000000000007 execute store result entity @s Offers.Recipes[1].buy.Count byte 1 run data get entity @e[sort=random,limit=1] UUIDLeast -.0000000000000000007 execute store result entity @s Offers.Recipes[2].buy.Count byte 1 run data get entity @e[sort=random,limit=1] UUIDLeast -.0000000000000000007 execute store result entity @s Offers.Recipes[3].buy.Count byte 1 run data get entity @e[sort=random,limit=1] UUIDLeast -.0000000000000000007 execute store result entity @s Offers.Recipes[4].buy.Count byte 1 run data get entity @e[sort=random,limit=1] UUIDLeast -.0000000000000000007 execute store result entity @s Offers.Recipes[5].buy.Count byte 1 run data get entity @e[sort=random,limit=1] UUIDLeast -.0000000000000000007 execute store result entity @s Offers.Recipes[6].buy.Count byte 1 run data get entity @e[sort=random,limit=1] UUIDLeast -.0000000000000000007 execute store result entity @s Offers.Recipes[7].buy.Count byte 1 run data get entity @e[sort=random,limit=1] UUIDLeast -.0000000000000000007 # set curer execute if entity @e[type=minecraft:item,limit=1,distance=..3,tag=gm4_gapple,nbt={Thrower:{}}] run function mob_conversion:set_curer data remove entity @s HandItems[1] tag @s remove gm4_mob_conversions_needs_init PK GBTu - data/mob_conversion/functions/main.mcfunction#execute on red mushrooms to check for cows around them execute at @e[type=item,nbt={Item:{id:"minecraft:red_mushroom"}},limit=1,sort=random] if entity @e[type=item,distance=..1.5,limit=1,nbt={Item:{id:"minecraft:brown_mushroom"}}] as @e[type=cow,distance=..1.5,limit=1,nbt={ActiveEffects:[{Id:2b}]}] at @s run function mob_conversion:convert_cow execute at @e[type=item,nbt={Item:{id:"minecraft:golden_carrot"}},limit=1,sort=random] as @e[type=zombie_pigman,distance=..1.5,limit=1,nbt={ActiveEffects:[{Id:1b}]}] at @s run function mob_conversion:convert_pigman execute at @e[type=item,nbt={Item:{id:"minecraft:golden_apple"}},limit=1,sort=random] as @e[type=witch,distance=..1.5,limit=1,nbt={ActiveEffects:[{Id:18b}]}] at @s run function mob_conversion:convert_witch PK GBT+ly 4 data/mob_conversion/functions/pulse_check.mcfunction#compares assigned run tick to current tick and calls main execute if score current_tick gm4_clock_tick = mob_conversion gm4_clock_tick run function mob_conversion:main PK GBT: 2 data/mob_conversion/functions/set_curer.mcfunction# @s = potion trading cleric villager converted from witch. # run from initialise_brewer data modify entity @s HandItems[1].tag.TargetMost set from entity @e[type=minecraft:item,limit=1,distance=..3,tag=gm4_gapple] Thrower.M data modify entity @s HandItems[1].tag.TargetLeast set from entity @e[type=minecraft:item,limit=1,distance=..3,tag=gm4_gapple] Thrower.L data modify entity @s Gossips append from entity @s HandItems[1].tag data modify entity @s Gossips[0] merge value {Type:"minor_positive", Value:25} PK NBTQdF pack.mcmetaPK GBT[@ɺ " data/gm4/functions/init.mcfunctionPK GBTB| " data/gm4/functions/load.mcfunctionPK GBT~ ) data/gm4/functions/out_of_date.mcfunctionPK GBT0,Z " } data/gm4/functions/tick.mcfunctionPK GBTΦ $ data/gm4/functions/update.mcfunctionPK GBTD D ' data/gm4/tags/functions/init_check.jsonPK GBT\E E ( = data/gm4/tags/functions/pulse_check.jsonPK GBT_, , ' data/minecraft/tags/functions/load.jsonPK GBT"s, , ' 9 data/minecraft/tags/functions/tick.jsonPK GBT 5 data/mob_conversion/functions/consume_item.mcfunctionPK GBT': : 4 data/mob_conversion/functions/convert_cow.mcfunctionPK GBT`G 7 S data/mob_conversion/functions/convert_pigman.mcfunctionPK GBT)i i 6 J data/mob_conversion/functions/convert_witch.mcfunctionPK NBTG5Q, Q, - ' data/mob_conversion/functions/init.mcfunctionPK NBT, 3 S data/mob_conversion/functions/init_check.mcfunctionPK GBTr, : T data/mob_conversion/functions/initialise_brewer.mcfunctionPK GBTu - Z data/mob_conversion/functions/main.mcfunctionPK GBT+ly 4 ^ data/mob_conversion/functions/pulse_check.mcfunctionPK GBT: 2 _ data/mob_conversion/functions/set_curer.mcfunctionPK ga