Compare commits

..

17 Commits

Author SHA1 Message Date
ef9d3f2ede Update 2024-03-26 23:27:40 +02:00
6a32584d11 NPC Update 2024-01-20 00:09:02 +02:00
cf9080a68c NPC Update 2024-01-15 04:27:02 +02:00
c934632a35 Update 2024-01-15 03:49:06 +02:00
b4de704a7c Add title and action bar 2024-01-15 03:20:05 +02:00
10c610ed00 Change event-entity to event-item in on pick up events 2024-01-15 03:08:04 +02:00
a602d8ad44 Use %player's name% instead of %player% 2024-01-15 01:42:01 +02:00
45c4718aab Update 2023-04-30 21:12:54 +03:00
7f137436a1 Update 2023-04-30 02:08:50 +03:00
99eca0713e Update 2023-04-29 17:26:34 +03:00
c2e51ca2ce Update 2023-04-29 16:40:54 +03:00
ebb530e931 Update 2023-04-26 17:58:28 +03:00
a4c22d2d89 Update 2023-04-26 17:52:42 +03:00
8332516600 Update 2023-04-26 17:44:54 +03:00
f86cc0d29e Update 2023-04-23 18:48:50 +03:00
9780aa604b Update 2023-04-23 18:24:30 +03:00
59a800c894 Enable left & rightclick items in mirricraft-old 2021-10-05 13:14:12 +03:00
15 changed files with 598 additions and 261 deletions

View File

@ -32,7 +32,7 @@ command /mirricraft [<string>] [<string>] [<string>]:
else: else:
format slot 13 of player with diamond named "&bVIP" with lore "&o&fTila: Pois käytöstä" to close then run [execute player command "/mirricraft gui vip"] format slot 13 of player with diamond named "&bVIP" with lore "&o&fTila: Pois käytöstä" to close then run [execute player command "/mirricraft gui vip"]
format slot 15 of player with player's skull named "&6Player" with lore "&o&f%player%" to close then run [execute player command "/mirricraft gui player"] format slot 15 of player with player's skull named "&6Player" with lore "&o&f%player's name%" to close then run [execute player command "/mirricraft gui player"]
#if player have permission "mirricraft.admin": #if player have permission "mirricraft.admin":
# format slot 16 of player with diamond axe named "&5Ylläpito" with lore "&o&fTila: Käytössä" to close then run [execute player command "/mirricraft admin"] # format slot 16 of player with diamond axe named "&5Ylläpito" with lore "&o&fTila: Käytössä" to close then run [execute player command "/mirricraft admin"]
@ -89,7 +89,7 @@ command /mirricraft [<string>] [<string>] [<string>]:
stop stop
if arg-2 is "player": if arg-2 is "player":
wait 2 tick wait 2 tick
open chest inventory with 5 row named "%player%" to player open chest inventory with 5 row named "%player's name%" to player
wait 2 tick wait 2 tick
loop integers between 0 and 44: loop integers between 0 and 44:
@ -102,35 +102,45 @@ command /mirricraft [<string>] [<string>] [<string>]:
else if arg-1 is "visit": else if arg-1 is "visit":
if player has the permission "mirricraft.visit": if player has the permission "mirricraft.visit":
if arg-2 is "lobby": if arg-2 is "lobby":
wait 2 tick
connect player to "lobby" connect player to "lobby"
stop stop
else if arg-2 is "truelo": else if arg-2 is "truelo":
wait 2 tick
connect player to "truelo" connect player to "truelo"
stop stop
else if arg-2 is "utopia": else if arg-2 is "utopia":
wait 2 tick
connect player to "utopia" connect player to "utopia"
stop stop
else if arg-2 is "skyblock": else if arg-2 is "skyblock":
wait 2 tick
connect player to "skyblock" connect player to "skyblock"
stop stop
else if arg-2 is "minigames": else if arg-2 is "minigames":
wait 2 tick
connect player to "minigames" connect player to "minigames"
stop stop
else if arg-2 is "multiverse": else if arg-2 is "multiverse":
wait 2 tick
connect player to "multiverse" connect player to "multiverse"
stop stop
else if arg-2 is "multiverse-hub" or "hub" or "multiverse-creative" or "multiverse-survival" or "multiverse-skyblock": else if arg-2 is "multiverse-hub" or "hub" or "multiverse-creative" or "multiverse-survival" or "multiverse-skyblock":
if arg-2 is "multiverse-hub": if arg-2 is "multiverse-hub":
teleport player to world "hub" wait 2 tick
teleport player to spawn of "hub"
stop stop
if arg-2 is "multiverse-creative": if arg-2 is "multiverse-creative":
teleport player to world "creative" wait 2 tick
teleport player to spawn of "creative"
stop stop
if arg-2 is "multiverse-survival": if arg-2 is "multiverse-survival":
teleport player to world "survival" wait 2 tick
teleport player to spawn of "survival"
stop stop
if arg-2 is "multiverse-skyblock": if arg-2 is "multiverse-skyblock":
teleport player to world "skyblock" wait 2 tick
teleport player to spawn of "skyblock"
stop stop
stop stop
else: else:
@ -143,7 +153,7 @@ command /mirricraft [<string>] [<string>] [<string>]:
remove all items from player remove all items from player
set slot 0 of player's inventory to 1 of compass named "&4Mene" set slot 0 of player's inventory to 1 of compass named "&4Mene"
set slot 4 of player's inventory to 1 of diamond named "&bVIP" set slot 4 of player's inventory to 1 of diamond named "&bVIP"
set slot 8 of player's inventory to 1 of player's skull named "&6%player%" set slot 8 of player's inventory to 1 of player's skull named "&6%player's name%"
else: else:
set slot 8 of player's inventory to 1 of ender chest named "&fMirriCraft" set slot 8 of player's inventory to 1 of ender chest named "&fMirriCraft"
stop stop
@ -176,14 +186,14 @@ command /mirricraft [<string>] [<string>] [<string>]:
else if arg-1 is "vip": else if arg-1 is "vip":
if player has the permission "mirricraft.vip": if player has the permission "mirricraft.vip":
if arg-2 is "fly": if arg-2 is "fly":
if {fly.%player%} is not set: if {fly.%player's name%} is not set:
message "&7[&2MirriCraft&7]&r Lento on nyt sallittu" message "&7[&2MirriCraft&7]&r Lento on nyt sallittu"
set player's flight mode to true set player's flight mode to true
set {fly.%player%} to true set {fly.%player's name%} to true
stop stop
message "&7[&2MirriCraft&7]&r Lento on pois käytöstä" message "&7[&2MirriCraft&7]&r Lento on pois käytöstä"
set player's flight mode to false set player's flight mode to false
delete {fly.%player%} delete {fly.%player's name%}
stop stop
if arg-2 is "bannerbuilder": if arg-2 is "bannerbuilder":
wait 2 tick wait 2 tick
@ -257,42 +267,23 @@ on respawn:
make player execute command "/mirricraft item" make player execute command "/mirricraft item"
stop stop
#on leftclick: on click:
# if event-item is ender chest named "&fMirriCraft": if event-item is ender chest named "&fMirriCraft":
# make player execute command "/mirricraft gui" make player execute command "/mirricraft gui"
# cancel the event cancel the event
# wait 2 tick wait 2 tick
# if event-item is compass named "&4Mene": if event-item is compass named "&4Mene":
# make player execute command "/mirricraft gui visit" make player execute command "/mirricraft gui visit"
# cancel the event cancel the event
# wait 2 tick wait 2 tick
# if event-item is diamond named "&bVIP": if event-item is diamond named "&bVIP":
# make player execute command "/mirricraft gui vip" make player execute command "/mirricraft gui vip"
# cancel the event cancel the event
# wait 2 tick wait 2 tick
# if event-item is player's skull named "&6%player%": if event-item is player's skull named "&6%player's name%":
# make player execute command "/mirricraft gui player" make player execute command "/mirricraft gui player"
# cancel the event cancel the event
# wait 2 tick wait 2 tick
#on rightclick:
# if event-item is ender chest named "&fMirriCraft":
# make player execute command "/mirricraft gui"
# cancel the event
# wait 2 tick
# if event-item is compass named "&4Mene":
# make player execute command "/mirricraft gui visit"
# cancel the event
# wait 2 tick
# if event-item is diamond named "&bVIP":
# make player execute command "/mirricraft gui vip"
# cancel the event
# wait 2 tick
# if event-item is player's skull named "&6%player%":
# make player execute command "/mirricraft gui player"
# cancel the event
# wait 2 tick
#on inventory click: #on inventory click:
# if event-item is ender chest named "&fMirriCraft": # if event-item is ender chest named "&fMirriCraft":
@ -301,7 +292,7 @@ on respawn:
# cancel the event # cancel the event
# if event-item is diamond named "&bVIP": # if event-item is diamond named "&bVIP":
# cancel the event # cancel the event
# if event-item is player's skull named "&6%player%": # if event-item is player's skull named "&6%player's name%":
# cancel the event # cancel the event
#on drop: #on drop:
@ -311,7 +302,7 @@ on respawn:
# cancel the event # cancel the event
# if event-item is diamond named "&bVIP": # if event-item is diamond named "&bVIP":
# cancel the event # cancel the event
# if event-item is player's skull named "&6%player%": # if event-item is player's skull named "&6%player's name%":
# cancel the event # cancel the event
on pickup: on pickup:
@ -321,24 +312,24 @@ on pickup:
delete event-entity delete event-entity
if event-item is diamond named "&bVIP": if event-item is diamond named "&bVIP":
delete event-entity delete event-entity
if event-item is player's skull named "&6%player%": if event-item is player's skull named "&6%player's name%":
delete event-entity delete event-entity
on death: on death:
if player's world is "lobby": if victim's world is "lobby":
clear drops clear drops
if player's world is "utopia": if victim's world is "utopia":
clear drops clear drops
# --- Welcome Message --- # --- Welcome Message ---
on join: on join:
send player title "MirriCraft" for 5 seconds send title "MirriCraft" to player for 5 seconds
send action bar "Nauti pelihetkestäsi, %player%!" to player send action bar "Nauti pelihetkestäsi, %player's name%!" to player
# --- World Title --- # --- World Title ---
on player world change: on player world change:
if "%event-world%" is "lobby": if "%event-world%" is "lobby":
send player title "&6MirriCraft" for 5 seconds send title "&6MirriCraft" to player for 5 seconds
# --- Lobby Time & Weather --- # --- Lobby Time & Weather ---
#at 18:00: #at 18:00:
@ -355,65 +346,65 @@ on weather change to rain or thunder:
# # # #
# ----------------------- # # ----------------------- #
command /hub: #command /hub:
description: Multiverse - Hub # description: Multiverse - Hub
executable by: players # executable by: players
trigger: # trigger:
make player execute command "/mirricraft visit multiverse-hub" # make player execute command "/mirricraft visit multiverse-hub"
stop # stop
command /multiverse: #command /multiverse:
description: Multiverse # description: Multiverse
executable by: players # executable by: players
trigger: # trigger:
make player execute command "/mirricraft visit multiverse" # make player execute command "/mirricraft visit multiverse"
stop # stop
# --- World Title --- # --- World Title ---
on player world change: #on player world change:
if "%event-world%" is "hub": # if "%event-world%" is "hub":
send player title "&6HUB" for 5 seconds # send player title "&6HUB" for 5 seconds
else if "%event-world%" is "survival": # else if "%event-world%" is "survival":
send player title "&6Survival" for 5 seconds # send player title "&6Survival" for 5 seconds
else if "%event-world%" is "survival_resources": # else if "%event-world%" is "survival_resources":
send player title "&6Survival - Resources" for 5 seconds # send player title "&6Survival - Resources" for 5 seconds
else if "%event-world%" is "survival_nether": # else if "%event-world%" is "survival_nether":
send player title "&6Survival - Nether" for 5 seconds # send player title "&6Survival - Nether" for 5 seconds
else if "%event-world%" is "survival_end": # else if "%event-world%" is "survival_end":
send player title "&6Survival - End" for 5 seconds # send player title "&6Survival - End" for 5 seconds
else if "%event-world%" is "creative": # else if "%event-world%" is "creative":
send player title "&6Creative" for 5 seconds # send player title "&6Creative" for 5 seconds
else if "%event-world%" is "skyblock": # else if "%event-world%" is "skyblock":
send player title "&6SkyBlock" for 5 seconds # send player title "&6SkyBlock" for 5 seconds
else if "%event-world%" is "skyblock_normal": # else if "%event-world%" is "skyblock_normal":
send player title "&6SkyBlock - Normal" for 5 seconds # send player title "&6SkyBlock - Normal" for 5 seconds
else if "%event-world%" is "skyblock_nether": # else if "%event-world%" is "skyblock_nether":
send player title "&6SkyBlock - Nether" for 5 seconds # send player title "&6SkyBlock - Nether" for 5 seconds
else if "%event-world%" is "skyblock_end": # else if "%event-world%" is "skyblock_end":
send player title "&6SkyBlock - End" for 5 seconds # send player title "&6SkyBlock - End" for 5 seconds
# --- Hub Time & Weather --- # --- Hub Time & Weather ---
at 18:00: #at 18:00:
if "%event-world%" is "hub": # if "%event-world%" is "hub":
set time to 7:00 # set time to 7:00
on weather change to rain or thunder: #on weather change to rain or thunder:
if "%event-world%" is "hub": # if "%event-world%" is "hub":
cancel event # cancel event
# --- Survival Event Block --- # --- Survival Event Block ---
on region enter: #on region enter:
wait 1 tick # wait 1 tick
if "%event-region%" contains "survival_castle_event_block": # if "%event-region%" contains "survival_castle_event_block":
make console execute command "/uf start survival_event_newyear_2019" # make console execute command "/uf start survival_event_newyear_2019"
make console execute command "/ptime 14000ticks %player%" # make console execute command "/ptime 14000ticks %player's name%"
make console execute command "/pweather clear %player%" # make console execute command "/pweather clear %player's name%"
on region exit: #on region exit:
wait 1 tick # wait 1 tick
if "%event-region%" contains "survival_castle_event_block": # if "%event-region%" contains "survival_castle_event_block":
make console execute command "/ptime reset %player%" # make console execute command "/ptime reset %player's name%"
make console execute command "/pweather reset %player%" # make console execute command "/pweather reset %player's name%"
# make console execute command "/uf stop survival_event_newyear_2019" # make console execute command "/uf stop survival_event_newyear_2019"
#on death: #on death:

6
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"editor.renderFinalNewline": false
}

View File

@ -1,10 +1,20 @@
# --- Clear Inventory --- #--------------------------------------------------
command /clearinventory: #
# MIRRICRAFT
# by Christer Warén / Warén Group
#
#--------------------------------------------------
command /clearinventory [<player>]:
description: Clear Inventory description: Clear Inventory
aliases: /clearinv aliases: /clearinv
executable by: console and players executable by: players
trigger: trigger:
if player has the permission "mirricraft.clearinventory": if arg-1 is not set:
if player has permission "mirricraft.clearinventory":
remove all items from player remove all items from player
stop stop
if arg-1 is set:
if player has permission "mirricraft.admin":
remove all items from arg-1
stop stop

View File

@ -1,8 +1,21 @@
# --- EnderChest --- #--------------------------------------------------
command /enderchest: #
# MIRRICRAFT
# by Christer Warén / Warén Group
#
#--------------------------------------------------
command /enderchest [<player>]:
description: EnderChest description: EnderChest
executable by: players executable by: players
trigger: trigger:
if arg-1 is not set:
if player has permission "mirricraft.enderchest":
wait 2 tick wait 2 tick
open the player's ender chest to the player open player's ender chest to player
stop
if arg-1 is set:
if player has permission "mirricraft.admin":
wait 2 tick
open arg-1's ender chest to player
stop stop

View File

@ -1,21 +1,36 @@
# --- Fly --- #--------------------------------------------------
command /fly [<text>]: #
# MIRRICRAFT
# by Christer Warén / Warén Group
#
#--------------------------------------------------
command /fly [<player>]:
description: Fly description: Fly
executable by: console and players executable by: players
trigger: trigger:
if arg-1 is not set:
if player has the permission "mirricraft.fly": if player has the permission "mirricraft.fly":
if {fly.%player%} is not set: if {fly.%player's name%} is not set:
message "&7[&2MirriCraft&7]&r Lento on nyt sallittu" message "&7[&2MirriCraft&7]&r Lento on nyt sallittu"
set player's flight mode to true set player's flight mode to true
set {fly.%player%} to true set {fly.%player's name%} to true
stop stop
else:
message "&7[&2MirriCraft&7]&r Lento on pois käytöstä" message "&7[&2MirriCraft&7]&r Lento on pois käytöstä"
set player's flight mode to false set player's flight mode to false
delete {fly.%player%} delete {fly.%player's name%}
stop stop
# if arg-1 is set:
# if player has permission "mirricraft.admin":
# if {fly.%arg-1%} is not set:
# set arg-1's flight mode to true
# set {fly.%arg-1%} to true
# stop
# else:
# set arg-1's flight mode to false
# delete {fly.%arg-1%}
# stop
on join: on quit:
if {fly.%player%} is set: delete {fly.%player's name%}
if player has the permission "mirricraft.vip":
set player's flight mode to true
stop

View File

@ -1,29 +1,46 @@
# --- Game Mode --- #--------------------------------------------------
command /gamemode [<string>]: #
# MIRRICRAFT
# by Christer Warén / Warén Group
#
#--------------------------------------------------
command /gamemode [<string>] [<player>]:
description: Game Mode description: Game Mode
aliases: /gm aliases: /gm
executable by: console and players executable by: console and players
trigger: trigger:
if arg-2 is not set:
if arg-1 is "0" or "s" or "survival": if arg-1 is "0" or "s" or "survival":
if player has the permission "mirricraft.gamemode.survival": if player has the permission "mirricraft.gamemode.survival":
set gamemode of player to Survival set gamemode of player to Survival
stop stop
stop
else if arg-1 is "1" or "c" or "creative": else if arg-1 is "1" or "c" or "creative":
if player has the permission "mirricraft.gamemode.creative": if player has the permission "mirricraft.gamemode.creative":
set gamemode of player to Creative set gamemode of player to Creative
stop stop
stop
else if arg-1 is "2" or "a" or "adventure": else if arg-1 is "2" or "a" or "adventure":
if player has the permission "mirricraft.gamemode.adventure": if player has the permission "mirricraft.gamemode.adventure":
set gamemode of player to Adventure set gamemode of player to Adventure
stop stop
stop
else if arg-1 is "3" or "sp" or "spectator": else if arg-1 is "3" or "sp" or "spectator":
if player has the permission "mirricraft.gamemode.spectator": if player has the permission "mirricraft.gamemode.spectator":
set gamemode of player to Spectator set gamemode of player to Spectator
stop stop
stop
else: else:
message "&7[&2MirriCraft&7]&r Sy&ouml;t&auml; pelitila" message "&7[&2MirriCraft&7]&r Valitse pelitila" to player
stop
if arg-2 is set:
if player has the permission "mirricraft.admin":
if arg-1 is "0" or "s" or "survival":
set gamemode of arg-2 to Survival
stop
else if arg-1 is "1" or "c" or "creative":
set gamemode of arg-2 to Creative
stop
else if arg-1 is "2" or "a" or "adventure":
set gamemode of arg-2 to Adventure
stop
else if arg-1 is "3" or "sp" or "spectator":
set gamemode of arg-2 to Spectator
stop stop

21
mirricraft-inventory.sk Normal file
View File

@ -0,0 +1,21 @@
#--------------------------------------------------
#
# MIRRICRAFT
# by Christer Warén / Warén Group
#
#--------------------------------------------------
command /inventory [<player>]:
description: Inventory
executable by: players
trigger:
if arg-1 is not set:
if player has permission "mirricraft.inventory":
wait 2 tick
open player's inventory to player
stop
if arg-1 is set:
if player has permission "mirricraft.admin":
wait 2 tick
open arg-1's inventory to player
stop

View File

@ -1,4 +1,10 @@
# --- Iron Door Opener --- #--------------------------------------------------
#
# MIRRICRAFT
# by Christer Warén / Warén Group
#
#--------------------------------------------------
on right click on iron door: on right click on iron door:
play sound "block.iron_door.open" with volume 1 to the player play sound "block.iron_door.open" with volume 1 to the player
toggle event-block toggle event-block

View File

@ -1,4 +1,10 @@
# --- KitPVP --- #--------------------------------------------------
#
# MIRRICRAFT
# by Christer Warén / Warén Group
#
#--------------------------------------------------
command /kitpvp [<string>] [<string>]: command /kitpvp [<string>] [<string>]:
description: Spawn description: Spawn
executable by: players executable by: players
@ -12,30 +18,30 @@ command /kitpvp [<string>] [<string>]:
loop integers between 0 and 35: loop integers between 0 and 35:
format slot loop-integer of player with gray stained glass pane named "&7" to be unstealable format slot loop-integer of player with gray stained glass pane named "&7" to be unstealable
if {kitpvp.%player%.map} is set: if {kitpvp.%player's name%.map} is set:
if {kitpvp.%player%.map} is "winter": if {kitpvp.%player's name%.map} is "winter":
format slot 12 of player with compass named "&fKartta" with lore "Talvi" to close then run [execute player command "/kitpvp setmap"] format slot 12 of player with compass named "&fKartta" with lore "Talvi" to close then run [execute player command "/kitpvp setmap"]
if {kitpvp.%player%.map} is "nether": if {kitpvp.%player's name%.map} is "nether":
format slot 12 of player with compass named "&fKartta" with lore "Horna" to close then run [execute player command "/kitpvp setmap"] format slot 12 of player with compass named "&fKartta" with lore "Horna" to close then run [execute player command "/kitpvp setmap"]
if {kitpvp.%player%.map} is "farm": if {kitpvp.%player's name%.map} is "farm":
format slot 12 of player with compass named "&fKartta" with lore "Farmi" to close then run [execute player command "/kitpvp setmap"] format slot 12 of player with compass named "&fKartta" with lore "Farmi" to close then run [execute player command "/kitpvp setmap"]
else: else:
format slot 12 of player with compass named "&fKartta" to close then run [execute player command "/kitpvp setmap"] format slot 12 of player with compass named "&fKartta" to close then run [execute player command "/kitpvp setmap"]
if {kitpvp.%player%.kit} is set: if {kitpvp.%player's name%.kit} is set:
if {kitpvp.%player%.kit} is "soldier": if {kitpvp.%player's name%.kit} is "soldier":
format slot 14 of player with iron chestplate named "&fKitit" with lore "Sotilas" to close then run [execute player command "/kitpvp setkit"] format slot 14 of player with iron chestplate named "&fKitit" with lore "Sotilas" to close then run [execute player command "/kitpvp setkit"]
if {kitpvp.%player%.kit} is "speedster": if {kitpvp.%player's name%.kit} is "speedster":
format slot 14 of player with iron chestplate named "&fKitit" with lore "Vauhtihirmu" to close then run [execute player command "/kitpvp setkit"] format slot 14 of player with iron chestplate named "&fKitit" with lore "Vauhtihirmu" to close then run [execute player command "/kitpvp setkit"]
if {kitpvp.%player%.kit} is "archer": if {kitpvp.%player's name%.kit} is "archer":
format slot 14 of player with iron chestplate named "&fKitit" with lore "Jousimies" to close then run [execute player command "/kitpvp setkit"] format slot 14 of player with iron chestplate named "&fKitit" with lore "Jousimies" to close then run [execute player command "/kitpvp setkit"]
else: else:
format slot 14 of player with iron chestplate named "&fKitit" to close then run [execute player command "/kitpvp setkit"] format slot 14 of player with iron chestplate named "&fKitit" to close then run [execute player command "/kitpvp setkit"]
if {kitpvp.%player%.started} is set: if {kitpvp.%player's name%.started} is set:
format slot 27 of player with barrier named "&fLopeta" to close then run [execute player command "/kitpvp end"] format slot 27 of player with barrier named "&fLopeta" to close then run [execute player command "/kitpvp end"]
else: else:
if {kitpvp.%player%.map} and {kitpvp.%player%.kit} is set: if {kitpvp.%player's name%.map} and {kitpvp.%player's name%.kit} is set:
format slot 35 of player with nether star named "&fAloita" to close then run [execute player command "/kitpvp start"] format slot 35 of player with nether star named "&fAloita" to close then run [execute player command "/kitpvp start"]
stop stop
@ -55,15 +61,15 @@ command /kitpvp [<string>] [<string>]:
format slot 15 of player with hay bale named "&fFarmi" to close then run [execute player command "/kitpvp setmap farm"] format slot 15 of player with hay bale named "&fFarmi" to close then run [execute player command "/kitpvp setmap farm"]
else: else:
if arg-2 is "winter": if arg-2 is "winter":
set {kitpvp.%player%.map} to "winter" set {kitpvp.%player's name%.map} to "winter"
make player execute command "/kitpvp" make player execute command "/kitpvp"
stop stop
if arg-2 is "nether": if arg-2 is "nether":
set {kitpvp.%player%.map} to "nether" set {kitpvp.%player's name%.map} to "nether"
make player execute command "/kitpvp" make player execute command "/kitpvp"
stop stop
if arg-2 is "farm": if arg-2 is "farm":
set {kitpvp.%player%.map} to "farm" set {kitpvp.%player's name%.map} to "farm"
make player execute command "/kitpvp" make player execute command "/kitpvp"
stop stop
stop stop
@ -82,15 +88,15 @@ command /kitpvp [<string>] [<string>]:
stop stop
else: else:
if arg-2 is "soldier": if arg-2 is "soldier":
set {kitpvp.%player%.kit} to "soldier" set {kitpvp.%player's name%.kit} to "soldier"
make player execute command "/kitpvp" make player execute command "/kitpvp"
stop stop
if arg-2 is "speedster": if arg-2 is "speedster":
set {kitpvp.%player%.kit} to "speedster" set {kitpvp.%player's name%.kit} to "speedster"
make player execute command "/kitpvp" make player execute command "/kitpvp"
stop stop
if arg-2 is "archer": if arg-2 is "archer":
set {kitpvp.%player%.kit} to "archer" set {kitpvp.%player's name%.kit} to "archer"
make player execute command "/kitpvp" make player execute command "/kitpvp"
stop stop
stop stop
@ -99,21 +105,21 @@ command /kitpvp [<string>] [<string>]:
set gamemode of player to Survival set gamemode of player to Survival
remove all items from player remove all items from player
if {kitpvp.%player%.kit} is set: if {kitpvp.%player's name%.kit} is set:
if {kitpvp.%player%.kit} is "soldier": if {kitpvp.%player's name%.kit} is "soldier":
set player's helmet to iron helmet set player's helmet to iron helmet
set player's chestplate to iron chestplate set player's chestplate to iron chestplate
set player's leggings to iron leggings set player's leggings to iron leggings
set player's boots to iron boots set player's boots to iron boots
set slot 0 of player's inventory to 1 of iron sword set slot 0 of player's inventory to 1 of iron sword
if {kitpvp.%player%.kit} is "speedster": if {kitpvp.%player's name%.kit} is "speedster":
set player's helmet to gold helmet set player's helmet to gold helmet
set player's chestplate to gold chestplate set player's chestplate to gold chestplate
set player's leggings to gold leggings set player's leggings to gold leggings
set player's boots to gold boots set player's boots to gold boots
set the player's walk speed to 0.4 set the player's walk speed to 0.4
set slot 0 of player's inventory to 1 of gold sword set slot 0 of player's inventory to 1 of gold sword
if {kitpvp.%player%.kit} is "archer": if {kitpvp.%player's name%.kit} is "archer":
set player's helmet to chainmail helmet set player's helmet to chainmail helmet
set player's chestplate to chainmail chestplate set player's chestplate to chainmail chestplate
set player's leggings to chainmail leggings set player's leggings to chainmail leggings
@ -123,24 +129,24 @@ command /kitpvp [<string>] [<string>]:
else: else:
make player execute command "/kitpvp" make player execute command "/kitpvp"
if {kitpvp.%player%.map} is set: if {kitpvp.%player's name%.map} is set:
if {kitpvp.%player%.map} is "winter": if {kitpvp.%player's name%.map} is "winter":
teleport player to location -48, 6, 264 teleport player to location -48, 6, 264
else if {kitpvp.%player%.map} is "nether": else if {kitpvp.%player's name%.map} is "nether":
teleport player to location 73, 4, 269 teleport player to location 73, 4, 269
else if {kitpvp.%player%.map} is "farm": else if {kitpvp.%player's name%.map} is "farm":
teleport player to location 57, 5, 357 teleport player to location 57, 5, 357
else: else:
make player execute command "/kitpvp" make player execute command "/kitpvp"
if {kitpvp.%player%.started} is not set: if {kitpvp.%player's name%.started} is not set:
heal the player heal the player
set {kitpvp.%player%.started} to true set {kitpvp.%player's name%.started} to true
stop stop
else if arg-1 is "end": else if arg-1 is "end":
remove all items from player remove all items from player
clear {kitpvp.%player%.started} clear {kitpvp.%player's name%.started}
teleport player to world "%player's world%" teleport player to spawn of "%player's world%"
stop stop
else: else:
stop stop
@ -151,7 +157,7 @@ command /kitpvp [<string>] [<string>]:
on join: on join:
if player's world is "minigames": if player's world is "minigames":
teleport player to world "%player's world%" teleport player to spawn of "%player's world%"
remove all items from player remove all items from player
set the player's walk speed to 0.2 set the player's walk speed to 0.2
set slot 7 of player's inventory to 1 of chest named "&fKitPVP" set slot 7 of player's inventory to 1 of chest named "&fKitPVP"
@ -163,60 +169,60 @@ on respawn:
stop stop
on death: on death:
if player's world is "minigames": if victim's world is "minigames":
remove all items from player remove all items from victim
set the player's walk speed to 0.2 set the victim's walk speed to 0.2
clear {kitpvp.%player%.started} clear {kitpvp.%victim%.started}
clear drops clear drops
on quit: on quit:
if player's world is "minigames": if player's world is "minigames":
remove all items from player remove all items from player
clear {kitpvp.%player%.started} clear {kitpvp.%player's name%.started}
stop stop
on leftclick: on leftclick:
if player's world is "minigames": if player's world is "minigames":
if event-item is chest named "&fKitPVP": if event-item is chest named "&fKitPVP":
make player execute command "/kitpvp" make player execute command "/kitpvp"
cancel the event cancel event
wait 2 tick wait 2 tick
on rightclick: on rightclick:
if player's world is "minigames": if player's world is "minigames":
if event-item is chest named "&fKitPVP": if event-item is chest named "&fKitPVP":
make player execute command "/kitpvp" make player execute command "/kitpvp"
cancel the event cancel event
wait 2 tick wait 2 tick
on inventory click: on inventory click:
if player's world is "minigames": if player's world is "minigames":
if event-item is chest named "&fKitPVP": if event-item is chest named "&fKitPVP":
cancel the event cancel event
on drop: on drop:
if player's world is "minigames": if player's world is "minigames":
if event-item is chest named "&fKitPVP": if event-item is chest named "&fKitPVP":
cancel the event cancel event
on pickup: on pickup:
if player's world is "minigames": if player's world is "minigames":
if event-item is chest named "&fKitPVP": if event-item is chest named "&fKitPVP":
delete event-entity cancel event
on break: on break:
if player's world is "minigames": if player's world is "minigames":
if {kitpvp.%player%.started} is set: if {kitpvp.%player's name%.started} is set:
cancel event cancel event
on block damage: on block damage:
if player's world is "minigames": if player's world is "minigames":
if {kitpvp.%player%.started} is set: if {kitpvp.%player's name%.started} is set:
cancel event cancel event
on item damage: on item damage:
if player's world is "minigames": if player's world is "minigames":
if {kitpvp.%player%.started} is set: if {kitpvp.%player's name%.started} is set:
cancel event cancel event
on region exit: on region exit:
@ -225,7 +231,7 @@ on region exit:
if "%event-region%" contains "minigames_kitpvp_": if "%event-region%" contains "minigames_kitpvp_":
remove all items from player remove all items from player
set the player's walk speed to 0.2 set the player's walk speed to 0.2
clear {kitpvp.%player%.started} clear {kitpvp.%player's name%.started}
on hunger meter change: on hunger meter change:
if player's world is "minigames": if player's world is "minigames":

View File

@ -1,10 +0,0 @@
# --- Lobby Tunnel ---
on region enter:
wait 1 tick
if "%event-region%" contains "lobby_tunnel_":
set the player's walk speed to 0.4
on region exit:
wait 1 tick
if "%event-region%" contains "lobby_tunnel_":
set the player's walk speed to 0.2

View File

@ -1,16 +1,16 @@
# --- NPC --- #--------------------------------------------------
on script load: #
set {citizens} to yml value "PluginHooks.Npc" of file "plugins/Skellett/config.yml" # MIRRICRAFT
if {citizens} is false: # by Christer Warén / Warén Group
disable script "mirricraft-npc.sk" #
#--------------------------------------------------
on rightclick on entity: on damage:
if clicked entity is a citizen: if attacker's world is "lobby":
if player's world is "lobby": if victim is "Robotti825":
if name of clicked entity is "Robotti825": if attacker doesn't have the permission "group.jasen":
if player doesn't have the permission "group.jasen": message "&7[&r%victim%&7]&r Annoin sinulle jäsenroolin, muistathan käyttäytyä!" to attacker
message "&7[&r%name of clicked entity%&7]&r Annoin sinulle jäsenroolin, muistathan käyttäytyä!" to player if attacker doesn't have the permission "group.aikainenjasen":
if player doesn't have the permission "group.aikainenjasen": make console execute command "/lp user %attacker% group add jasen"
make console execute command "/lp user %player% group add jasen"
else: else:
message "&7[&r%name of clicked entity%&7]&r Olet jo jäsen" to player message "&7[&r%victim%&7]&r Olet jo jäsen" to attacker

View File

@ -1,15 +1,21 @@
# --- Portals --- #--------------------------------------------------
#
# MIRRICRAFT
# by Christer Warén / Warén Group
#
#--------------------------------------------------
on region enter: on region enter:
wait 1 tick wait 1 tick
if "%event-region%" contains "_portal_to_lobby": if "%event-region%" contains "_portal_to_lobby":
teleport player to world "%player's world%" teleport player to spawn of "%player's world%"
connect player to "lobby" connect player to "lobby"
if "%event-region%" contains "_portal_to_utopia": if "%event-region%" contains "_portal_to_utopia":
teleport player to world "%player's world%" teleport player to spawn of "%player's world%"
connect player to "utopia" connect player to "utopia"
if "%event-region%" contains "_portal_to_skyblock": if "%event-region%" contains "_portal_to_skyblock":
teleport player to world "%player's world%" teleport player to spawn of "%player's world%"
connect player to "skyblock" connect player to "skyblock"
if "%event-region%" contains "_portal_to_minigames": if "%event-region%" contains "_portal_to_minigames":
teleport player to world "%player's world%" teleport player to spawn of "%player's world%"
connect player to "minigames" connect player to "minigames"

View File

@ -1,11 +1,17 @@
# --- Spawn --- #--------------------------------------------------
#
# MIRRICRAFT
# by Christer Warén / Warén Group
#
#--------------------------------------------------
command /spawn: command /spawn:
description: Spawn description: Spawn
executable by: players executable by: players
trigger: trigger:
if "%player's world%" contains "skyblock_": if "%player's world%" contains "skyblock_":
teleport player to world "skyblock" teleport player to spawn of "skyblock"
stop stop
else: else:
teleport player to world "%player's world%" teleport player to spawn of "%player's world%"
stop stop

54
mirricraft-speed.sk Normal file
View File

@ -0,0 +1,54 @@
#--------------------------------------------------
#
# MIRRICRAFT
# by Christer Warén / Warén Group
#
#--------------------------------------------------
command /speed [<text>] [<number>] [<player>]:
description: Speed
executable by: players
trigger:
if arg-1 is not set:
stop
if arg-1 is set:
if arg-1 is "walk":
if arg-2 is not set:
stop
if arg-2 is set:
if arg-2 is greater than 10:
set player's walking speed to 0.2 * 10
stop
set player's walking speed to 0.2 * arg 2
stop
if arg-1 is "fly":
if arg-2 is not set:
stop
if arg-2 is set:
if arg-3 is not set:
if player has the permission "mirricraft.speed":
if arg-2 is greater than 10:
set player's flying speed to 0.2 * 10
stop
set player's flying speed to 0.2 * arg 2
stop
if arg-3 is set:
if player has the permission "mirricraft.admin":
if arg-2 is greater than 10:
set arg-3's flying speed to 0.2 * 10
stop
set arg-3's flying speed to 0.2 * arg 2
stop
# Lobby Tunnel
on region enter:
wait 1 tick
if "%event-region%" contains "lobby_tunnel_":
set player's walking speed to 0.4
on region exit:
wait 1 tick
if "%event-region%" contains "lobby_tunnel_":
set player's walking speed to 0.2

View File

@ -5,26 +5,222 @@
# #
#-------------------------------------------------- #--------------------------------------------------
on load: on join:
#Create Config make player execute command "/mirricraft item"
if "mirricraft.yml" exist: # --- Welcome Message ---
send title "MirriCraft" to player for 5 seconds
send action bar "Nauti pelihetkestäsi, %player's name%!" to player
stop
on respawn:
make player execute command "/mirricraft item"
stop
on click:
if event-item is ender chest named "&fMirriCraft":
make player execute command "/mirricraft gui"
cancel event
wait 2 tick
if event-item is compass named "&2Mene":
make player execute command "/mirricraft gui visit"
cancel event
wait 2 tick
if event-item is diamond named "&bVIP":
make player execute command "/mirricraft gui vip"
cancel event
wait 2 tick
if event-item is diamond axe named "&5Ylläpito":
make player execute command "/mirricraft gui admin"
cancel event
wait 2 tick
if event-item is player's skull named "&6%player's name%":
make player execute command "/mirricraft gui player"
cancel event
wait 2 tick
on pickup:
if event-item is ender chest named "&fMirriCraft":
cancel event
if event-item is compass named "&2Mene":
cancel event
if event-item is diamond named "&bVIP":
cancel event
if event-item is diamond named "&5Ylläpito":
cancel event
if event-item is player's skull named "&6%player's name%":
cancel event
on death:
if victim's world is "lobby":
clear drops
if victim's world is "utopia":
clear drops
on weather change to rain or thunder:
if "%event-world%" is "lobby":
cancel event
command /mirricraft [<string>] [<string>] [<string>] [<string>]:
description: MirriCraft
aliases: /mirri, /mc
executable by: players
trigger:
if arg-1 is not set:
make player execute command "/mirricraft item"
make player execute command "/mirricraft gui"
stop
if arg-1 is set:
if arg-1 is "visit":
if player has the permission "mirricraft.visit":
if arg-2 is not set:
message "&7[&2MIRRICRAFT&7]&r Sinun tulee syöttää matkakohde, johon haluat matkustaa!"
stop
if arg-2 is set:
if arg-2 is "lobby":
wait 2 tick
connect player to "lobby"
stop
else if arg-2 is "truelo":
wait 2 tick
connect player to "truelo"
stop
else if arg-2 is "utopia":
wait 2 tick
connect player to "utopia"
stop
else if arg-2 is "skyblock":
wait 2 tick
connect player to "skyblock"
stop
else if arg-2 is "minigames":
wait 2 tick
connect player to "minigames"
stop stop
else: else:
create file "mirricraft.yml" message "&7[&2MIRRICRAFT&7]&r Valitsemasi matkakohde ei löytynyt!"
#wf "#--------------------------------------------------" to "mirricraft.yml" stop
#wf "#" to "mirricraft.yml" else:
#wf "# MIRRICRAFT" to "mirricraft.yml" message "&7[&2MIRRICRAFT&7]&r Sinulla ei ole riittäviä oikeuksia!"
#wf "# by Christer Warén / Warén Group" to "mirricraft.yml" if arg-1 is "vip":
#wf "#" to "mirricraft.yml" if player has the permission "mirricraft.vip":
#wf "#--------------------------------------------------" to "mirricraft.yml" if arg-2 is "cosmetics":
wait 2 tick
make player execute command "/uc menu main"
stop
if arg-2 is "music":
wait 2 tick
make player execute command "/music"
stop
else:
message "&7[&2MIRRICRAFT&7]&r Osta itsellesi VIP-jäsenyys tukemalla MirriCraftin toimintaa!"
if arg-1 is "player":
stop
if arg-1 is "item":
if player's world is "lobby":
remove all items from player
if player have permission "mirricraft.admin":
set slot 0 of player's inventory to 1 of compass named "&2Mene"
set slot 4 of player's inventory to 1 of diamond named "&bVIP"
set slot 6 of player's inventory to 1 of diamond axe named "&5Ylläpito"
set slot 8 of player's inventory to 1 of player's skull named "&6%player's name%"
stop
else:
set slot 0 of player's inventory to 1 of compass named "&2Mene"
set slot 4 of player's inventory to 1 of diamond named "&bVIP"
set slot 8 of player's inventory to 1 of player's skull named "&6%player's name%"
stop
else:
set slot 8 of player's inventory to 1 of ender chest named "&fMirriCraft"
stop
if arg-1 is "reload":
if player has permission "mirricraft.admin":
message "&7[&2MirriCraft&7]&r Reloading..."
make player execute command "/skript reload mirricraft"
stop
if arg-1 is "gui":
if arg-2 is not set:
wait 2 tick
open chest inventory with 3 row named "MirriCraft" to player
wait 2 tick
loop integers between 0 and 26:
format slot loop-integer of player with gray stained glass pane named "&7" to be unstealable
if player have permission "mirricraft.admin":
format slot 10 of player with compass named "&2Mene" with lore "-" to close then run [execute player command "/mirricraft gui visit"]
format slot 12 of player with diamond named "&bVIP" with lore "-" to close then run [execute player command "/mirricraft gui vip"]
format slot 14 of player with diamond axe named "&5Ylläpito" with lore "-" to close then run [execute player command "/mirricraft gui admin"]
format slot 16 of player with player's skull named "&6Player" with lore "&o&f%player's name%" to close then run [execute player command "/mirricraft gui player"]
stop
else:
format slot 10 of player with compass named "&2Mene" with lore "-" to close then run [execute player command "/mirricraft gui visit"]
format slot 13 of player with diamond named "&bVIP" with lore "-" to close then run [execute player command "/mirricraft gui vip"]
format slot 16 of player with player's skull named "&6Player" with lore "&o&f%player's name%" to close then run [execute player command "/mirricraft gui player"]
stop
if arg-2 is set:
if arg-2 is "visit":
wait 2 tick
open chest inventory with 4 row named "MirriCraft - Mene" to player
wait 2 tick
loop integers between 0 and 35:
format slot loop-integer of player with gray stained glass pane named "&7" to be unstealable
format slot 11 of player with diamond sword with no nbt named "&f&nTruelo" with lore "&o&fSelviydy elämän haasteista" and "&7Avautuu myöhemmin" to close then run [execute player command "/mirricraft visit truelo"]
format slot 13 of player with allium named "&f&nUtopia" with lore "&o&fVain luovuus on rajanasi" to close then run [execute player command "/mirricraft visit utopia"]
format slot 15 of player with oak sapling named "&f&nSkyBlock" with lore "&o&fTunne vapauden tuulenvire" to close then run [execute player command "/mirricraft visit skyblock"]
format slot 21 of player with end crystal named "&f&nMinigames" with lore "&o&fHauskaa kavereiden kanssa" to close then run [execute player command "/mirricraft visit minigames"]
format slot 23 of player with ender eye named "&f&nMultiverse" with lore "&o&fKäväise vanhoissa maailmoissa" and "&7Suljettu toistaiseksi" to close then run [execute player command "/mirricraft visit multiverse"]
format slot 35 of player with nether star named "&fLobby" to close then run [execute player command "/mirricraft visit lobby"]
format slot 27 of player with arrow named "&fTakaisin" to close then run [execute player command "/mirricraft gui"]
stop
if arg-2 is "vip":
if player has the permission "mirricraft.vip":
wait 2 tick
open chest inventory with 4 row named "MirriCraft - VIP" to player
wait 2 tick
loop integers between 0 and 35:
format slot loop-integer of player with gray stained glass pane named "&7" to be unstealable
if player's world is "lobby":
format slot 12 of player with ender chest named "&fCosmetics" to close then run [execute player command "/mirricraft vip cosmetics"]
format slot 14 of player with music disc cat named "&fMusic" to close then run [execute player command "/mirricraft vip music"]
format slot 27 of player with arrow named "&fTakaisin" to close then run [execute player command "/mirricraft gui"]
stop
if arg-2 is "player":
wait 2 tick
open chest inventory with 4 row named "MirriCraft - %player's name%" to player
wait 2 tick
loop integers between 0 and 35:
format slot loop-integer of player with gray stained glass pane named "&7" to be unstealable
format slot 12 of player with ender chest named "&fEnderChest" to close then run [execute player command "/enderchest"]
format slot 14 of player with elytra named "&fFly" to close then run [execute player command "/fly"]
format slot 27 of player with arrow named "&fTakaisin" to close then run [execute player command "/mirricraft gui"]
stop
if arg-2 is "admin":
if player has the permission "mirricraft.admin":
wait 2 tick
open chest inventory with 4 row named "MirriCraft - Ylläpito" to player
wait 2 tick
loop integers between 0 and 35:
format slot loop-integer of player with gray stained glass pane named "&7" to be unstealable
format slot 27 of player with arrow named "&fTakaisin" to close then run [execute player command "/mirricraft gui"]
stop stop
# --- Bossbar --- command /lobby:
on join: description: Lobby
create bossbar titled "&f&lMirriCraft" and id "bossbar.%player's uuid%" for player with progress 100 with colors white executable by: players
trigger:
make player execute command "/mirricraft visit lobby"
stop stop
# --- Welcome Message ---
on join:
send player title "MirriCraft" for 5 seconds
send action bar "Nauti pelihetkestäsi, %player%!" to player