Skip to content

Commit

Permalink
Random Host Mob
Browse files Browse the repository at this point in the history
  • Loading branch information
DinnerBeef committed Nov 22, 2024
1 parent aa5beb4 commit 1780993
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 4 deletions.
13 changes: 13 additions & 0 deletions data/lt/donation_trigger/random_mob.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"predicate": {
"amount": {
"min": 0.01
}
},
"action": {
"type": "run_function",
"function": "lt:world_games/minigolf/events/random_mob/test"
}
}
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
execute store result score random golf.events run random value 1..5
execute store result score random golf.events run random value 1..20
execute if score random golf.events matches 1 run disguise as ltminigames:driftwood
execute if score random golf.events matches 2 run disguise as tropicraft:chair
execute if score random golf.events matches 3 run disguise as tropicraft:sea_urchin
execute if score random golf.events matches 4 run disguise as minecraft:bee
execute if score random golf.events matches 5 run disguise as minecraft:breeze
execute if score random golf.events matches 5 run disguise as minecraft:breeze
execute if score random golf.events matches 6 run disguise as minecraft:armadillo
execute if score random golf.events matches 7 run disguise as minecraft:sniffer
execute if score random golf.events matches 8 run disguise as minecraft:axolotl
execute if score random golf.events matches 9 run disguise as minecraft:illusioner
execute if score random golf.events matches 10 run disguise as minecraft:goat
execute if score random golf.events matches 11 run disguise as tropicraft:umbrella
execute if score random golf.events matches 12 run disguise as tropicraft:cowktail
execute if score random golf.events matches 13 run disguise as tropicraft:beach_float
execute if score random golf.events matches 14 run disguise as tropicraft:fiddler_crab
execute if score random golf.events matches 15 run disguise as minecraft:armor_stand
execute if score random golf.events matches 16 run disguise as minecraft:wither
execute if score random golf.events matches 17 run disguise as dummyplayers:dummy_player {NoBasePlate:true,Small:true,profile:{id:[I;-1505211345,-855292401,-2116995351,764383134]},CustomNameVisible:false}
execute if score random golf.events matches 18 run disguise as minecraft:end_crystal
execute if score random golf.events matches 19 run disguise as minecraft:evoker
execute if score random golf.events matches 20 run disguise as minecraft:enderman
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
execute if score randomMob golf.events matches 1 as @a[role=live] run function lt:world_games/minigolf/events/random_mob/random
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
data modify gamedata lt:parkour @s[type=minecraft:player] number set from entity @e[type=minecraft:marker,sort=nearest,limit=1] data.number
playsound minecraft:block.note_block.banjo voice @s
tellraw @s {"translate":"lt.game.parkour.general.checkpoint_reached"}
tellraw @s {"translate":"lt.game.parkour.general.checkpoint_reached "}
6 changes: 5 additions & 1 deletion data/ltpermissions/command_aliases.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@
"admin effects scale set_mode disabled": "scoreboard players set Enable events.hosts -1",
"admin effects scale set_mode scale_up": "scoreboard players set Enable events.hosts 1",
"admin effects scale set_mode scale_down": "scoreboard players set Enable events.hosts 2",
"admin effects scale reset_scale": "function lt:donation_effects/scale/reset"
"admin effects scale reset_scale": "function lt:donation_effects/scale/reset",
"admin effects random_mob enable": "scoreboard players set randomMob golf.events 1",
"admin effects random_mob disable": "scoreboard players set randomMob golf.events 0",
"admin events golf host_mode enable": "scoreboard players set hostMode golf.events 1",
"admin events golf host_mode disable": "scoreboard players set hostMode golf.events 0"
}

0 comments on commit 1780993

Please sign in to comment.