Skip to content

Commit

Permalink
create
Browse files Browse the repository at this point in the history
  • Loading branch information
Tschipcraft committed Jul 3, 2021
0 parents commit ed5c513
Show file tree
Hide file tree
Showing 64 changed files with 506 additions and 0 deletions.
5 changes: 5 additions & 0 deletions data/minecraft/tags/functions/load.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"more_mobs:install"
]
}
5 changes: 5 additions & 0 deletions data/minecraft/tags/functions/tick.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"more_mobs:main"
]
}
7 changes: 7 additions & 0 deletions data/more_mobs/functions/drowned/captain.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## by Tschipcraft

data modify entity @s ArmorItems[3] merge value {id:"minecraft:player_head",Count:1b,tag:{display:{Name:'[{"translate":"entity.minecraft.drowned"},{"text":" "},{"text":"Captain Head"}]'},SkullOwner:{Id:[I;-309597865,1548045258,-1846996743,728806868],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTcwYzY5NjJlZWE5ZDFjYjBiNTAzYWI3YjZiODFmYzUwNGI4YmQwMWY4YzQxNTYxZTBjMDIwYjZkMzY2YmQwMiJ9fX0="}]}}}}
data modify entity @s HandItems[1] merge value {id:"minecraft:gold_ingot",Count:5b}
data modify entity @s HandItems[0] merge value {id:"minecraft:golden_sword",Count:1b}
tag @s add captain_drowned
tag @s add custom_head
5 changes: 5 additions & 0 deletions data/more_mobs/functions/drowned/dark_drowned.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## by Tschipcraft

data modify entity @s ArmorItems[3] merge value {id:"minecraft:player_head",Count:1b,tag:{display:{Name:'[{"translate":"entity.minecraft.drowned"},{"text":" "},{"text":"Head"}]'},SkullOwner:{Id:[I;-1484183043,-427735242,-1459175690,-1016815504],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZmIxNTMxYzA0ZTI1ZDdmYTY0NTc2OTgyNjg0OTFjYjg5NmQzMzAyZDI2ODg0ZmNmZGYxYTBiMmY5MmQ3N2M4ZiJ9fX0="}]}}}}
tag @s add drowned
tag @s add custom_head
5 changes: 5 additions & 0 deletions data/more_mobs/functions/drowned/drowned.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## by Tschipcraft

data modify entity @s ArmorItems[3] merge value {id:"minecraft:player_head",Count:1b,tag:{display:{Name:'[{"translate":"entity.minecraft.drowned"},{"text":" "},{"text":"Head"}]'},SkullOwner:{Id:[I;-786613705,-1882504218,-1536203797,-653302370],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzFhNzMyNTI0MDFhNmU5NDZmNjFkYmFjMGUwMjdkMTgzZTBhY2U1ODc1MmZhMTVhNjRkMjQ0OWZjZjUwODdiNyJ9fX0="}]}}}}
tag @s add drowned
tag @s add custom_head
5 changes: 5 additions & 0 deletions data/more_mobs/functions/drowned/drowned_2.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## by Tschipcraft

data modify entity @s ArmorItems[3] merge value {id:"minecraft:player_head",Count:1b,tag:{display:{Name:'[{"translate":"entity.minecraft.drowned"},{"text":" "},{"text":"Head"}]'},SkullOwner:{Id:[I;1259704836,226118860,-1499029770,1332190105],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjQ4MDBlNWY1ZTM3NTJkNGY2OWI1MjVjYzAwZGNjYTg2ODdhZThjYTBmYjYyYzQ1NzE5ZDlmY2U0NTFlYTQ1YSJ9fX0="}]}}}}
tag @s add drowned
tag @s add custom_head
6 changes: 6 additions & 0 deletions data/more_mobs/functions/drowned/pillager.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## by Tschipcraft

data modify entity @s ArmorItems[3] merge value {id:"minecraft:player_head",Count:1b,tag:{display:{Name:'[{"translate":"entity.minecraft.drowned"},{"text":" "},{"translate":"entity.minecraft.pillager"},{"text":" "},{"text":"Head"}]'},SkullOwner:{Id:[I;1933444737,-381074033,-2070253002,-1512835282],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjE0MTFiY2I5NzllODRjZjE5NDQyNDg1N2U5NzM2MGQxOTBiMjkwYWQ3MTc0MGU5YjAzZTZiMzBkMjExOTNiIn19fQ=="}]}}}}
data modify entity @s HandItems[0] merge value {id:"minecraft:iron_axe",Count:1b}
tag @s add pillager_drowned
tag @s add custom_head
6 changes: 6 additions & 0 deletions data/more_mobs/functions/drowned/pirate.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## by Tschipcraft

data modify entity @s ArmorItems[3] merge value {id:"minecraft:player_head",Count:1b,tag:{display:{Name:'[{"translate":"entity.minecraft.drowned"},{"text":" "},{"text":"Pirate Head"}]'},SkullOwner:{Id:[I;1637949205,-978304925,-1293147704,978780041],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmJlOTRmZDMxYjgyMjIyNDMyZjI3YjYwZDc2NWE1ZDYyMmZkNzZjNGUzYTg4MDdmOWExZDQxZmI3MDdhZmFlMCJ9fX0="}]}}}}
data modify entity @s HandItems[0] merge value {id:"minecraft:iron_sword",Count:1b}
tag @s add captain_drowned
tag @s add custom_head
5 changes: 5 additions & 0 deletions data/more_mobs/functions/drowned/villager.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## by Tschipcraft

data modify entity @s ArmorItems[3] merge value {id:"minecraft:player_head",Count:1b,tag:{display:{Name:'[{"translate":"entity.minecraft.drowned"},{"text":" "},{"translate":"entity.minecraft.villager"},{"text":" "},{"text":"Head"}]'},SkullOwner:{Id:[I;835461429,1132347810,-1083852185,-203378022],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNTZkYWY1MGVhZjc2YzNhNmQ1YWQzOWM5NjZmMjk4NzdiOTFkOTUwZGQxZTM3MTIyZTljODE5NTg1Yzg5ZDkyZSJ9fX0="}]}}}}
tag @s add villager_drowned
tag @s add custom_head
6 changes: 6 additions & 0 deletions data/more_mobs/functions/drowned/witch.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## by Tschipcraft

data modify entity @s ArmorItems[3] merge value {id:"minecraft:player_head",Count:1b,tag:{display:{Name:'[{"translate":"entity.minecraft.drowned"},{"text":" "},{"translate":"entity.minecraft.witch"},{"text":" "},{"text":"Head"}]'},SkullOwner:{Id:[I;1038576533,-2107882022,-1376325326,1806075462],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2M4N2RkNmUyYjAzNmJmY2I3MDYxMGZkNjVhMDMwOTk4MjU2MzhhZGMxYTJhZDkyMDBmNDQwNjdiNWE2MTExNyJ9fX0="}]}}}}
data modify entity @s HandItems[1] merge value {id:"minecraft:cauldron",Count:1b}
tag @s add witch_drowned
tag @s add custom_head
23 changes: 23 additions & 0 deletions data/more_mobs/functions/effect_loop.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## by Tschipcraft

effect give @e[type=minecraft:wither_skeleton,tag=ornate] minecraft:speed 3 1
effect give @e[type=minecraft:wither_skeleton,tag=burned] minecraft:slowness 3 1

execute as @e[type=minecraft:wither_skeleton,tag=magma_2] at @s run particle minecraft:lava ~ ~1.3 ~ 0.1 0.4 0.1 0 2
execute as @e[type=minecraft:wither_skeleton,tag=magma_1] at @s run particle minecraft:flame ~ ~1.3 ~ 0.1 0.4 0.1 0 3
execute as @e[type=minecraft:wither_skeleton,tag=burned] at @s run particle minecraft:ash ~ ~1.4 ~ 0.2 0.4 0.2 0 12

effect give @e[type=minecraft:stray,tag=queen] minecraft:speed 3 0
effect give @e[type=minecraft:zombie,tag=bloody_zombie] minecraft:speed 3 0


execute as @e[type=minecraft:skeleton,tag=warped] at @s run particle minecraft:warped_spore ~ ~1 ~ 0 0.5 0 0.1 7

execute as @e[type=minecraft:husk,tag=mummy] at @s run particle minecraft:block sand ~ ~1 ~ 0.2 0.4 0.2 0.1 7
execute as @e[type=minecraft:skeleton,tag=pharaoh] at @s run particle minecraft:block sand ~ ~1 ~ 0.2 0.4 0.2 0.1 7

execute as @e[type=minecraft:drowned,tag=drowned] at @s run particle minecraft:falling_water ~ ~1 ~ 0.2 0.4 0.2 0.1 1
execute as @e[type=minecraft:skeleton,tag=drowned] at @s run particle minecraft:falling_water ~ ~1 ~ 0.2 0.4 0.2 0.1 1


schedule function more_mobs:effect_loop 2s
5 changes: 5 additions & 0 deletions data/more_mobs/functions/evoker/illusioner.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## by Tschipcraft

summon minecraft:illusioner ~ ~ ~
tp @s ~ -1 ~
kill @s
67 changes: 67 additions & 0 deletions data/more_mobs/functions/general/parse.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
## by Tschipcraft

execute as @s[type=!player] run function more_mobs:generate_random_number
data merge entity @s[type=!minecraft:mooshroom] {ArmorDropChances:[0.085F,0.085F,0.085F,0.030F]}

# Mooshroom
execute as @s[type=minecraft:mooshroom,tag=!parsed,scores={random=14..}] run data merge entity @s {Type:"brown"}

# Evoker
execute as @s[type=minecraft:evoker,tag=!parsed,scores={random=17..}] run function more_mobs:evoker/illusioner

# Skeleton
execute as @s[type=minecraft:skeleton,tag=!parsed,scores={random=10..11}] run function more_mobs:skeleton/zombie
execute as @s[type=minecraft:skeleton,tag=!parsed,scores={random=12..13}] run function more_mobs:skeleton/magic
execute as @s[type=minecraft:skeleton,tag=!parsed,scores={random=6..9}] if block ~ ~-1 ~ minecraft:grass_block[snowy=true] run function more_mobs:skeleton/snowy
execute as @s[type=minecraft:skeleton,tag=!parsed,scores={random=12..16}] if block ~ ~ ~ minecraft:water run function more_mobs:skeleton/captain
execute as @s[type=minecraft:skeleton,tag=!parsed,scores={random=6..9}] if block ~ ~ ~ minecraft:water run function more_mobs:skeleton/pirate
execute as @s[type=minecraft:skeleton,tag=!parsed,scores={random=14..16}] if block ~ ~-1 ~ #more_mobs:jungle_blocks run function more_mobs:skeleton/mossy
execute as @s[type=minecraft:skeleton,tag=!parsed,scores={random=16..18}] if block ~ ~ ~ minecraft:water run function more_mobs:skeleton/drowned
execute as @s[type=minecraft:skeleton,tag=!parsed,scores={random=16..}] if block ~ ~-1 ~ minecraft:grass_block run function more_mobs:skeleton/overgrown
execute as @s[type=minecraft:skeleton,tag=!parsed,scores={random=17..}] if block ~ ~-1 ~ #minecraft:sand run function more_mobs:skeleton/pharaoh
execute as @s[type=minecraft:skeleton,tag=!parsed,scores={random=12..16}] if block ~ ~-1 ~ #minecraft:base_stone_overworld run function more_mobs:skeleton/radioactive
execute as @s[type=minecraft:skeleton,tag=!parsed,scores={random=16..}] if block ~ ~-1 ~ #minecraft:base_stone_overworld run function more_mobs:skeleton/rotting
execute as @s[type=minecraft:skeleton,tag=!parsed,scores={random=0..19}] if block ~ ~-1 ~ minecraft:warped_nylium run function more_mobs:skeleton/warped
execute as @s[type=minecraft:skeleton,tag=!parsed,scores={random=19..}] run function more_mobs:skeleton/creeper

# Stray
execute as @s[type=minecraft:stray,tag=!parsed,scores={random=11..13}] run function more_mobs:stray/queen

# Wither Skeleton
execute as @s[type=minecraft:wither_skeleton,tag=!parsed,scores={random=7..10}] run function more_mobs:wither_skeleton/ornate
execute as @s[type=minecraft:wither_skeleton,tag=!parsed,scores={random=11..12}] run function more_mobs:wither_skeleton/burned
execute as @s[type=minecraft:wither_skeleton,tag=!parsed,scores={random=13..15}] run function more_mobs:wither_skeleton/magma_1
execute as @s[type=minecraft:wither_skeleton,tag=!parsed,scores={random=16..18}] run function more_mobs:wither_skeleton/magma_2
execute as @s[type=minecraft:wither_skeleton,tag=!parsed,scores={random=19..20}] run function more_mobs:wither_skeleton/king

# Husk
execute as @s[type=minecraft:husk,tag=!parsed,scores={random=7..9}] run function more_mobs:husk/dark_husk
execute as @s[type=minecraft:husk,tag=!parsed,scores={random=13..14}] run function more_mobs:husk/villager_1
execute as @s[type=minecraft:husk,tag=!parsed,scores={random=15..16}] run function more_mobs:husk/villager_2
execute as @s[type=minecraft:husk,tag=!parsed,scores={random=17..}] run function more_mobs:husk/pharaoh
execute as @s[type=minecraft:husk,tag=!parsed,scores={random=10..12}] run function more_mobs:husk/mummy

# Zombie
execute as @s[type=minecraft:zombie,tag=!parsed,scores={random=4..6}] run function more_mobs:zombie/villager
execute as @s[type=minecraft:zombie,tag=!parsed,scores={random=13..18}] if block ~ ~-1 ~ #more_mobs:jungle_blocks run function more_mobs:zombie/jungle
execute as @s[type=minecraft:zombie,tag=!parsed,scores={random=6..11}] if block ~ ~-1 ~ minecraft:grass_block[snowy=true] run function more_mobs:zombie/snowy
execute as @s[type=minecraft:zombie,tag=!parsed,scores={random=14..19}] if block ~ ~-1 ~ minecraft:grass_block[snowy=true] run function more_mobs:zombie/frozen
execute as @s[type=minecraft:zombie,tag=!parsed,scores={random=14..19}] if block ~ ~-1 ~ #minecraft:ice run function more_mobs:zombie/frozen
execute as @s[type=minecraft:zombie,tag=!parsed,scores={random=12..16}] if block ~ ~ ~ minecraft:water run function more_mobs:zombie/lake
execute as @s[type=minecraft:zombie,tag=!parsed,scores={random=12..14}] if block ~ ~-1 ~ #minecraft:base_stone_overworld run function more_mobs:zombie/miner_1
execute as @s[type=minecraft:zombie,tag=!parsed,scores={random=15..16}] if block ~ ~-1 ~ #minecraft:base_stone_overworld run function more_mobs:zombie/miner_2
execute as @s[type=minecraft:zombie,tag=!parsed,scores={random=16..}] if block ~ ~-1 ~ #minecraft:base_stone_overworld run function more_mobs:zombie/rotting
execute as @s[type=minecraft:zombie,tag=!parsed,scores={random=19..20}] run function more_mobs:zombie/bloody

# Drowned
execute as @s[type=minecraft:drowned,tag=!parsed,scores={random=4..5}] run function more_mobs:drowned/drowned_2
execute as @s[type=minecraft:drowned,tag=!parsed,scores={random=6..7}] run function more_mobs:drowned/dark_drowned
execute as @s[type=minecraft:drowned,tag=!parsed,scores={random=8..10}] run function more_mobs:drowned/drowned
execute as @s[type=minecraft:drowned,tag=!parsed,scores={random=11..12}] run function more_mobs:drowned/witch
execute as @s[type=minecraft:drowned,tag=!parsed,scores={random=13}] run function more_mobs:drowned/villager
execute as @s[type=minecraft:drowned,tag=!parsed,scores={random=14..15}] run function more_mobs:drowned/pirate
execute as @s[type=minecraft:drowned,tag=!parsed,scores={random=16..17}] run function more_mobs:drowned/pillager
execute as @s[type=minecraft:drowned,tag=!parsed,scores={random=18..}] run function more_mobs:drowned/captain


tag @s add parsed
11 changes: 11 additions & 0 deletions data/more_mobs/functions/generate_random_number.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## by Tschipcraft


#execute unless entity @e[type=minecraft:area_effect_cloud,tag=random] run function more_mobs:install

scoreboard players operation generator ran1 *= generator ran2
scoreboard players operation generator ran1 %= generator ran3
scoreboard players operation generator ran5 = generator ran1
scoreboard players operation generator ran5 %= generator ran4

scoreboard players operation @s random = generator ran5
5 changes: 5 additions & 0 deletions data/more_mobs/functions/husk/dark_husk.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## by Tschipcraft

data modify entity @s ArmorItems[3] merge value {id:"minecraft:player_head",Count:1b,tag:{display:{Name:'[{"translate":"entity.minecraft.husk"},{"text":" "},{"text":"Head"}]'},SkullOwner:{Id:[I;-463906136,1852918978,-1476943593,1251924170],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDJjYzE3N2M2NDNlZTgzMzY0ODExZGFiZThiNDUwNWQ3MjM5OTMwNWEwMGY1ZTRkOThmNWM5MGU5ODNjYTcwNiJ9fX0="}]}}}}
tag @s add husk
tag @s add custom_head
5 changes: 5 additions & 0 deletions data/more_mobs/functions/husk/mummy.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## by Tschipcraft

data modify entity @s ArmorItems[3] merge value {id:"minecraft:player_head",Count:1b,tag:{display:{Name:"{\"text\":\"Mummy Head\"}"},SkullOwner:{Id:[I;251561473,1824870079,-1604689500,170698271],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTllNjk1MThjYzFhMzM0NGI2OTc3M2EwOWEyMzdjNjYzODFiODUyNzkxN2Y0YTM4NTBlZThhY2Y0ZWY0MjAzYiJ9fX0="}]}}}}
tag @s add mummy
tag @s add custom_head
6 changes: 6 additions & 0 deletions data/more_mobs/functions/husk/pharaoh.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## by Tschipcraft

data modify entity @s ArmorItems[3] merge value {id:"minecraft:player_head",Count:1b,tag:{display:{Name:"{\"text\":\"Pharaoh Head\"}"},SkullOwner:{Id:[I;-721495988,-864466843,-1112421834,-979353236],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTViMjViMTMxNmIyODM4MmQyZWM1ZmI2MjdlYWU4MWQ0M2M0OGJmNGE1NjMwZDYyYmQ2MzZlMDllN2FiODBjOSJ9fX0="}]}}}}
data modify entity @s HandItems[0] merge value {id:"minecraft:golden_sword",Count:1b}
tag @s add pharaoh_husk
tag @s add custom_head
5 changes: 5 additions & 0 deletions data/more_mobs/functions/husk/villager_1.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## by Tschipcraft

data modify entity @s ArmorItems[3] merge value {id:"minecraft:player_head",Count:1b,tag:{display:{Name:'[{"translate":"entity.minecraft.husk"},{"text":" "},{"text":"Head"}]'},SkullOwner:{Id:[I;-498796574,-321240979,-1258197409,-1696119631],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvN2QxYTIyYjQ5MmUyNWNmZTdjM2UyNWU0M2E1ZmEwODEwMmEwN2ZjOTI0YTk4MmRjY2YyNjBlNzZjMjA1MzI4YSJ9fX0="}]}}}}
tag @s add husk
tag @s add custom_head
5 changes: 5 additions & 0 deletions data/more_mobs/functions/husk/villager_2.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## by Tschipcraft

data modify entity @s ArmorItems[3] merge value {id:"minecraft:player_head",Count:1b,tag:{display:{Name:'[{"translate":"entity.minecraft.husk"},{"text":" "},{"text":"Head"}]'},SkullOwner:{Id:[I;-1813291128,-1535753890,-1791977748,-535107511],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjA4MGRjOGJjYWQ4MjdhMzYzNThiMjRlMTIxODY5MzFiYTc1MjFlOTI0ZTEzMjFlZTFiY2ExNTg5YTUzYTRhZiJ9fX0="}]}}}}
tag @s add husk
tag @s add custom_head
30 changes: 30 additions & 0 deletions data/more_mobs/functions/install.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## by Tschipcraft

scoreboard objectives add ran1 dummy
scoreboard objectives add ran2 dummy
scoreboard objectives add ran3 dummy
scoreboard objectives add ran4 dummy
scoreboard objectives add ran5 dummy
scoreboard objectives add random dummy
#execute unless entity @e[type=minecraft:area_effect_cloud,tag=random] run summon minecraft:area_effect_cloud 29999976 0 29999976 {Tags:[random],ReapplicationDelay:0,Radius:0f,RadiusPerTick:0f,RadiusOnUse:0f,Duration:4000000,DurationOnUse:0f}

scoreboard players set generator ran1 1430920
scoreboard players set generator ran2 16383
scoreboard players set generator ran3 131071
scoreboard players set generator ran4 21


scoreboard objectives add mm_install dummy
scoreboard objectives add menu trigger
scoreboard objectives add spa_a_test dummy

team remove mm_nonametag
team add mm_nonametag
team modify mm_nonametag nametagVisibility never

schedule function more_mobs:spa_a_test 1s

execute in overworld run forceload add 29999976 29999976

schedule clear more_mobs:effect_loop
schedule function more_mobs:effect_loop 1s
23 changes: 23 additions & 0 deletions data/more_mobs/functions/main.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## by Tschipcraft


execute if score Global spa_a_test matches 0 as @e[type=#more_mobs:parsable,tag=!parsed,tag=!exclude] at @s run function more_mobs:general/parse
execute if score Global spa_a_test matches 1 as @e[type=#more_mobs:parsable,tag=!parsed,tag=spa_a_verify,tag=!exclude] at @s positioned ~ ~2.3 ~ run function more_mobs:general/parse

## Spider
execute as @e[type=minecraft:spider,tag=!OnCeiling] at @s if block ~ ~-1 ~ #more_mobs:air unless blocks ~0.5 ~1 ~0.5 ~-0.5 ~1 ~-0.5 ~ ~ ~ all run function more_mobs:spider/onceiling
execute as @e[type=minecraft:spider,tag=OnCeiling] at @s if blocks ~0.5 ~1 ~0.5 ~-0.5 ~1 ~-0.5 ~ ~ ~ all run function more_mobs:spider/inair

## Cave Spider
execute as @e[type=minecraft:cave_spider,tag=!OnCeiling] at @s if block ~ ~-0.1 ~ #more_mobs:air unless block ~ ~0.5 ~ #more_mobs:air run function more_mobs:spider/onceiling
execute as @e[type=minecraft:cave_spider,tag=OnCeiling] at @s if block ~ ~0.5 ~ #more_mobs:air run function more_mobs:spider/inair


## menu message
scoreboard players enable @a menu
scoreboard players add @a mm_install 0
execute as @a[scores={menu=1..60,mm_install=0}] run function more_mobs:messages/welcome

execute as @a[scores={menu=61..}] run scoreboard players set @s mm_install 0
scoreboard players reset @a[scores={menu=122..}] menu
scoreboard players add @a[scores={menu=1..}] menu 1
6 changes: 6 additions & 0 deletions data/more_mobs/functions/messages/welcome.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## by Tschipcraft

tellraw @s ["",{"text":"➤ More Mobs by Tschipcraft installed!","italic":false,"color":"aqua"},{"text":"\n"},{"text":"[Reset]","color":"red","clickEvent":{"action":"run_command","value":"/function more_mobs:reset"},"hoverEvent":{"action":"show_text","contents":["",{"text":"Reset the whole data pack. ","color":"white"}]}},{"text":" "},{"text":"[Uninstall]","color":"dark_red","clickEvent":{"action":"run_command","value":"/function more_mobs:uninstall"},"hoverEvent":{"action":"show_text","contents":["",{"text":"Uninstalls the data pack. ","color":"white"}]}},{"text":" "},{"text":"[Check for updates] ","color":"blue","clickEvent":{"action":"open_url","value":"https://tschipcraft.ddns.net/update/test.html?pack=more_mobs&v=1.0"},"hoverEvent":{"action":"show_text","contents":"Click here to check for updates"}}]
scoreboard players set @s mm_install 1

#tellraw @s ["",{"text":"➤ Realistic Explosions by Tschipcraft installed!","italic":false,"color":"aqua"},{"text":"\n"},{"text":"[Settings]","color":"light_purple","clickEvent":{"action":"run_command","value":"/function realistic_explosions:settings"},"hoverEvent":{"action":"show_text","contents":"Click here"}},{"text":" "},{"text":"[Reset]","color":"red","clickEvent":{"action":"run_command","value":"/function realistic_explosions:reset"},"hoverEvent":{"action":"show_text","contents":["",{"text":"Reset the whole data pack. ","color":"white"}]}},{"text":" "},{"text":"[Uninstall]","color":"dark_red","clickEvent":{"action":"run_command","value":"/function realistic_explosions:uninstall"},"hoverEvent":{"action":"show_text","contents":["",{"text":"Uninstalls the data pack. ","color":"white"}]}},{"text":" "},{"text":"[Check for updates] ","color":"blue","clickEvent":{"action":"open_url","value":"https://tschipcraft.ddns.net/update/test.html?pack=realistic_explosions&v=1.0"},"hoverEvent":{"action":"show_text","contents":"Click here to check for updates"}}]
7 changes: 7 additions & 0 deletions data/more_mobs/functions/reset.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## by Tschipcraft

kill @e[type=minecraft:area_effect_cloud,tag=random]
team remove mm_nonametag
say Resetted More Mobs by @s

function more_mobs:install
Loading

0 comments on commit ed5c513

Please sign in to comment.