command /pointadd: trigger: # Basic marker point add location at 0, 0, 0 in world "world" named "spawn" to player # Marker with custom icon point add location at 10, 0, 0 in world "world" named "home" with icon "house" to player # Marker at player's location point add location at player's location named "my_marker" to player
point add location at <x>, <y>, <z> in world "<world>" named "<name>" to <player>point add location at <x>, <y>, <z> in world "<world>" named "<name>" with icon "<icon>" to <player>point add location at <location> named "<name>" to <player>
command /pointremove: trigger: # Remove specific marker point remove "spawn" to player # Remove multiple markers point remove "home" to player point remove "shop" to player
command /popup: trigger: # Simple popup show popup "damage_popup" to player # Popup with variables set {_vars::damage} to "15" set {_vars::target} to "Zombie" show popup "combat_popup" to player with variable of {_vars::*}
command /damage: trigger: # Create variables set {_data::damage} to "25" set {_data::type} to "Critical Hit" set {_data::target} to "Skeleton" # Show popup with variables show popup "damage_indicator" to player with variable of {_data::*}
command /sethome: trigger: set {home::%player%} to player's location point add location at player's location named "home" with icon "house" to player send "Home set!" to playercommand /home: trigger: if {home::%player%} is set: teleport player to {home::%player%} send "Teleported home!" to player else: send "No home set! Use /sethome first." to playercommand /delhome: trigger: delete {home::%player%} point remove "home" to player send "Home deleted!" to player
command /startquest <text>: permission: quests.start trigger: set {quest::%player%} to arg-1 if arg-1 is "dragon": # Add quest marker point add location at 100, 64, 200 in world "world" named "quest_dragon" with icon "dragon" to player # Show quest start popup set {_vars::quest} to "Slay the Dragon" set {_vars::reward} to "1000 gold" show popup "quest_start" to player with variable of {_vars::*} send "Quest started: Slay the Dragon" to playercommand /completequest: trigger: if {quest::%player%} is set: # Remove quest marker point remove "quest_dragon" to player # Show completion popup set {_vars::quest} to "Slay the Dragon" set {_vars::reward} to "1000 gold" show popup "quest_complete" to player with variable of {_vars::*} delete {quest::%player%} send "Quest completed!" to player
on damage: if attacker is a player: set {_vars::damage} to "%damage%" set {_vars::target} to "%victim%" # Check for critical hit if attacker is sprinting: set {_vars::type} to "CRITICAL" else: set {_vars::type} to "Normal" # Show damage popup show popup "damage_indicator" to attacker with variable of {_vars::*}
every 5 minutes: loop all players: # Random chance for event set {_rand} to random integer between 1 to 100 if {_rand} <= 10: # Spawn treasure at random location set {_x} to random integer between -100 to 100 set {_z} to random integer between -100 to 100 set {_loc} to location at {_x}, 64, {_z} in world "world" # Add marker point add location at {_loc} named "treasure" with icon "treasure" to loop-player # Show notification set {_vars::type} to "Treasure" set {_vars::distance} to "%distance between loop-player and {_loc}%" show popup "event_notification" to loop-player with variable of {_vars::*}
command /shops: trigger: # Add multiple shop markers point add location at 50, 64, 50 in world "world" named "shop_weapons" with icon "sword" to player point add location at -30, 64, 80 in world "world" named "shop_armor" with icon "armor" to player point add location at 0, 64, -40 in world "world" named "shop_food" with icon "food" to player send "Shop locations marked on your compass!" to playercommand /hideshops: trigger: # Remove all shop markers point remove "shop_weapons" to player point remove "shop_armor" to player point remove "shop_food" to player send "Shop markers hidden!" to player
on death of player: # Save death location set {death::%player%} to player's location # Add death marker point add location at player's location named "death" with icon "skull" to player # Show death popup set {_vars::cause} to "%damage cause%" show popup "death_screen" to player with variable of {_vars::*}on respawn: # Keep death marker visible wait 1 tick send "Your death location is marked on your compass." to playercommand /cleardeath: trigger: point remove "death" to player delete {death::%player%} send "Death marker cleared!" to player
function showHealthWarning(p: player): if {_p}'s health < 6: set {_vars::health} to "%{_p}'s health%" set {_vars::max} to "%{_p}'s max health%" show popup "low_health_warning" to {_p} with variable of {_vars::*}every 1 second: loop all players: showHealthWarning(loop-player)
command /findnearestplayer: trigger: set {_nearest} to nearest player to player if {_nearest} is set: point add location at {_nearest}'s location named "nearest_player" with icon "player" to player send "Nearest player marked!" to player # Auto-remove after 30 seconds wait 30 seconds point remove "nearest_player" to player
command /notify: trigger: if {cooldown::%player%} is not set: show popup "notification" to player set {cooldown::%player%} to true wait 10 seconds delete {cooldown::%player%} else: send "Popup on cooldown!" to player
# Goodpoint add location at 0, 0, 0 in world "world" named "spawn_point" to player# Avoidpoint add location at 0, 0, 0 in world "world" named "p1" to player