-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
248e3f6
commit 673bbc4
Showing
20 changed files
with
74 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
"conditions": { | ||
"item": { | ||
"items": [ | ||
"minecraft:potion" | ||
"tropicraft:limeade" | ||
] | ||
} | ||
} | ||
|
7 changes: 7 additions & 0 deletions
7
data/lt/functions/club/bouncer/kick_out_non_member.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
title @s times 0t 3t 0t | ||
title @s title {"text": "! NON MEMBER !","color": "dark_red","bold": true} | ||
title @s subtitle {"text": "You shouldn't be here - Bouncers inbound!","color": "red"} | ||
effect give @s blindness 2 60 true | ||
effect give @s slowness 1 5 true | ||
playsound minecraft:block.note_block.bit master @s ~ ~ ~ 0.5 0.5 | ||
damage @e[tag=club.bouncer,limit=1,sort=nearest] 5 minecraft:out_of_world by @s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Team detection | ||
# Execute store success to look for disguises on player heads. | ||
execute in tropicraft:tropics as @a[distance=..45] store success score @s club.disguiseWearTrack run data get entity @s Inventory[{Slot:103b,id:"ltminigames:disguise"}] | ||
team join club.hideNames @a[scores={club.disguiseWearTrack=1},distance=..45,tag=club.joined,gamemode=!spectator] | ||
team leave @a[scores={club.disguiseWearTrack=0},distance=..45,team=club.hideNames] | ||
|
||
# Bouncer stuff | ||
team join club.hideNames @e[tag=club.bouncer,type=minecraft:vindicator] | ||
execute as @a[distance=..45,scores={club.disguiseWearTrack=0},gamemode=!spectator,gamemode=!creative,tag=club.joined] at @s run function lt:club/bouncer/trap_idiot | ||
execute as @a[distance=..45,gamemode=!spectator,gamemode=!creative,tag=!club.joined] at @s run function lt:club/bouncer/kick_out_non_member |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
title @s times 0t 3t 0t | ||
title @s title {"text": "DISGUISE REMOVED","color": "dark_red","bold": true} | ||
title @s subtitle {"text": "Reequip your disguise - Bouncers inbound!","color": "red"} | ||
effect give @s blindness 2 60 true | ||
effect give @s slowness 1 5 true | ||
playsound minecraft:block.note_block.bit master @s ~ ~ ~ 0.5 0.5 | ||
damage @e[tag=club.bouncer,limit=1,sort=nearest] 5 minecraft:out_of_world by @s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
summon villager ~ ~ ~ {NoGravity:1b,Invulnerable:1b,CustomNameVisible:1b,PersistenceRequired:1b,Health:100f,Tags:["club.bartender"],CustomName:'{"translate":"lt.club.bartender_name","fallback":"Dave: Bartender"}',Attributes:[{Name:generic.max_health,Base:100},{Name:generic.knockback_resistance,Base:1},{Name:generic.movement_speed,Base:0}],VillagerData:{level:99,profession:"minecraft:cleric",type:"minecraft:jungle"},Offers:{Recipes:[{rewardExp:0b,maxUses:2147483647,xp:0,buy:{id:"ltextras:tropicoin",Count:2b},sell:{id:"tropicraft:coconut_water",Count:1b}},{rewardExp:0b,maxUses:2147483647,xp:0,buy:{id:"ltextras:tropicoin",Count:2b},sell:{id:"tropicraft:black_coffee",Count:1b}},{rewardExp:0b,maxUses:2147483647,xp:0,buy:{id:"ltextras:tropicoin",Count:2b},sell:{id:"tropicraft:pina_colada",Count:1b}},{rewardExp:0b,maxUses:2147483647,xp:0,buy:{id:"ltextras:tropicoin",Count:2b},sell:{id:"tropicraft:mai_tai",Count:1b}},{rewardExp:0b,maxUses:2147483647,xp:0,buy:{id:"ltextras:tropicoin",Count:2b},sell:{id:"tropicraft:lemonade",Count:1b}},{rewardExp:0b,maxUses:2147483647,xp:0,buy:{id:"ltextras:tropicoin",Count:2b},sell:{id:"tropicraft:orangeade",Count:1b}},{rewardExp:0b,maxUses:2147483647,xp:0,buy:{id:"ltextras:tropicoin",Count:4b},sell:{id:"tropicraft:limeade",Count:1b}},{rewardExp:0b,maxUses:2147483647,xp:0,buy:{id:"ltextras:tropicoin",Count:2b},sell:{id:"tropicraft:caipirinha",Count:1b}}]}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
kill @e[tag=club.the_club] | ||
summon marker ~ ~ ~ {Tags:["club.the_club"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
summon marker ~ ~ ~ {Tags:["club.exit"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
kill @e[tag=club.first_spawn] | ||
summon marker ~ ~ ~ {Tags:["club.first_spawn"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
kill @e[tag=club.internal_exit] | ||
summon marker ~ ~ ~ {Tags:["club.internal_exit"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
kill @e[tag=club.normal_spawn] | ||
summon marker ~ ~ ~ {Tags:["club.normal_spawn"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
summon vindicator ~ ~ ~ {Silent:1b,Invulnerable:1b,CustomNameVisible:1b,Team:"club.hideNames",PersistenceRequired:1b,CanPickUpLoot:0b,Health:100f,Johnny:0b,PatrolLeader:0b,Patrolling:0b,CanJoinRaid:0b,Tags:["club.bouncer"],CustomName:'{"text":"way of their inability to follow club rules.","color":"white"}',Attributes:[{Name:generic.max_health,Base:100},{Name:generic.follow_range,Base:65},{Name:generic.knockback_resistance,Base:1},{Name:generic.movement_speed,Base:0.45},{Name:generic.attack_damage,Base:25},{Name:generic.attack_knockback,Base:0}]} | ||
effect give @e[tag=club.bouncer] regeneration infinite 10 true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
# Remove advancement | ||
advancement revoke @s only lt:limeade_drink_test | ||
|
||
## Only do any of the following if the player has the club.can_enter tag and has an emerald block at Y 44 in their vertical column (in bar detection). | ||
|
||
# Create trail effects | ||
playsound minecraft:entity.enderman.teleport master @a[distance=..25] ~ ~ ~ 2 | ||
particle portal ~ ~0.25 ~ 0.1 0.3 0.1 0.3 100 force @a[distance=..25] | ||
execute if entity @s[tag=club.can_enter,scores={club.disguiseWearTrack=1}] if block ~ 44 ~ emerald_block run playsound minecraft:entity.enderman.teleport master @a[distance=..25] ~ ~ ~ 2 | ||
execute if entity @s[tag=club.can_enter,scores={club.disguiseWearTrack=1}] if block ~ 44 ~ emerald_block run particle portal ~ ~0.25 ~ 0.1 0.3 0.1 0.3 100 force @a[distance=..25] | ||
|
||
# Give tags | ||
execute unless entity @s[tag=club.joined] run tag @s add club.first_time_join | ||
tag @s add club.joined | ||
execute if entity @s[tag=club.can_enter,scores={club.disguiseWearTrack=1}] if block ~ 44 ~ emerald_block run execute unless entity @s[tag=club.joined] run tag @s add club.first_time_join | ||
execute if entity @s[tag=club.can_enter,scores={club.disguiseWearTrack=1}] if block ~ 44 ~ emerald_block run tag @s add club.joined | ||
|
||
# Play introduction if player is joining for the first time | ||
execute if entity @s[tag=club.first_time_join] run function lt:club/introduction/start | ||
execute if entity @s[tag=club.can_enter,scores={club.disguiseWearTrack=1}] if block ~ 44 ~ emerald_block if entity @s[tag=club.first_time_join] run function lt:club/introduction/start | ||
|
||
# Otherwise teleport them to the existing member spawn location | ||
execute if entity @s[tag=!club.first_time_join] run function lt:club/introduction/existing_member | ||
execute if entity @s[tag=club.can_enter,scores={club.disguiseWearTrack=1}] if block ~ 44 ~ emerald_block if entity @s[tag=!club.first_time_join] run function lt:club/introduction/existing_member |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
tag @s add club.needs_invite_2 | ||
scoreboard players reset @s club.dialogueTime | ||
tag @s add club.spoken_with_gibnut | ||
tag @s remove club.speaking_with_gibnut | ||
tag @s remove club.speaking_with_gibnut | ||
give @s tropicraft:tropicoin 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
tellraw @s [{"text":"Ser Gibsworth","color":"gold"},{"text": ": Hey! I wasn't done talking, where are you going! Who raised you?! Whatever ... I'll pass the word along to ","color": "gray"},{"text": "them ","italic": true,"color": "gray"},{"text": "that you're ready.","italic": false,"color": "gray"}] | ||
tellraw @s [{"text":"Ser Gibsworth","color":"gold"},{"text": ": Hey! I wasn't done talking, where are you going! Who raised you?! Whatever ... I'll pass the word along to ","color": "gray"},{"text": "them ","italic": true,"color": "gray"},{"text": "that you're ready. Oh and take these coins. I think you'll find them helpful.","italic": false,"color": "gray"}] | ||
tag @s remove club.speaking_with_gibnut | ||
tag @s add club.spoken_with_gibnut | ||
tag @s add club.needs_invite_2 | ||
playsound minecraft:entity.llama.spit master @s ~ ~ ~ 1 1 | ||
scoreboard players reset @s club.dialogueTime | ||
scoreboard players reset @s club.dialogueTime | ||
give @s tropicraft:tropicoin 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
# Gibnut Grotto | ||
execute in tropicraft:tropics as @e[tag=club.gibnut] at @s if entity @p[distance=..8,gamemode=!spectator] run execute as @a[distance=..8,tag=!club.has_enough_disguises,tag=!club.speaking_with_gibnut,tag=!club.gibnut_rejected] at @s run function lt:club/gibnut/reject | ||
execute in tropicraft:tropics as @e[tag=club.gibnut] at @s if entity @p[distance=..8,gamemode=!spectator] run execute as @a[distance=..8,tag=club.has_enough_disguises,tag=!club.speaking_with_gibnut,tag=!club.spoken_with_gibnut] at @s run function lt:club/gibnut/accept | ||
execute as @a[tag=club.speaking_with_gibnut,tag=club.has_enough_disguises] at @s run function lt:club/gibnut/accept_on_tick | ||
execute as @a[tag=club.speaking_with_gibnut,tag=!club.has_enough_disguises] at @s run function lt:club/gibnut/reject_on_tick | ||
|
||
# Disguise detection (abstracted out for efficiency :)) | ||
execute as @e[tag=club.disguise_tracker] at @s if entity @e[type=player,distance=..35] run function lt:club/disguise_tracker_tick | ||
|
||
# Bouncer / Club system | ||
execute in tropicraft:tropics as @e[tag=club.the_club] at @s if entity @p[distance=..45] run function lt:club/bouncer/on_tick | ||
|
||
# Exit detection | ||
execute as @e[tag=club.internal_exit] at @s run tp @a[distance=..2.5,gamemode=!spectator,tag=club.joined] @e[tag=club.exit,sort=random,limit=1] | ||
|
||
# Ensure players who leave disguise tracker entity range have their team reset | ||
execute as @a[scores={club.disguiseWearTrack=1}] at @s unless entity @e[tag=club.disguise_tracker,distance=..35] run function lt:club/reset_team | ||
execute as @a[scores={club.disguiseWearTrack=1}] at @s unless entity @e[tag=club.disguise_tracker,distance=..35] unless entity @e[tag=club.the_club,distance=..48] run function lt:club/reset_team | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters