1 120
收录服务器
1481
注册
34 036
玩家
LuckyTreasure GUI 设置 多世界支持 自定义模型支持
随机时间和随机位置,为您的服务器带来更多乐趣
作 者 alanlam1999
发布时间 2021年11月10日
支持核心 Spigot
原生版本
支持版本 1.12,1.13,1.14,1.15,1.16,1.17,1.18,1.19
点此下载

🍀LuckyTreasure

LuckyTreasure 是一款 Minecraft 插件,它允许你在你的服务器中生成自定义的宝藏。每个宝藏都包含自定义的物品、命令和全息消息。插件支持多世界、PlaceholderAPI 和自定义模型,所有设置都可以在 GUI 中完成。

✨特性

  • 支持多世界
  • 支持 PlaceholderAPI
  • 支持自定义模型
  • 自定义宝藏内容
  • 自定义宝藏
  • 全息消息
  • 几乎所有内容都可翻译
  • 所有设置都可以在 GUI 中完成

🔑权限

  • LuckyTreasure.admin - 允许查看时间、编辑宝藏、位置和重载插件。

📜命令

  • /tr - 打开主 GUI。
  • /tr help - 在聊天框中发送命令列表。
  • /tr gui - 打开宝藏内容 GUI (需要 LuckyTreasure.admin 权限)。
  • /trreload - 重载配置文件。
  • /tr time - 查看宝藏时间。
  • /tr location - 查看宝藏位置。
  • /tr test [worldName] - 生成一个宝藏。
  • /tr test [worldName] [X] [Y] [Z] [Type/Random] - 直接生成一个宝藏。

🧰Placeholder

  • %luckytreasure_exist% - 检查当前存在多少个宝藏。
  • %luckytreasure_maxtreasure% - 检查本周的最大宝藏数量。
  • %luckytreasure_day% - 检查当前是星期几。
  • %luckytreasure_shown% - 检查本周已显示的宝藏数量。

⚙️配置文件

config.yml


# Treasure time detect world
# it may needs to restart server
Detect_world: world
# Version 2.4 update
# No random time treasure
Disable_random_treasure: false
# for the back button that is near the close button
# if set it to true, it needs to be a command for clicking
# for example if you using DeluxeMenu, GUI_back_command: dm open mainmenu
GUI_back_button: false
GUI_back_command: []
# Detect which world can set the treasure
Enable_world:
 - world
# Version 1.4 update
# world replaced name
World_name:
 world: "&asurivial world"
# Max treasure in 1 week
Max_treasure: 7
# chance to no treasure (default: 50% -> 0.5)
No_treasure: 0.5
# get treasure time (time base to long value)
Treasure_time_lower: 1500
Treasure_time_upper: 20000
# Treasure existing time (default: 20 mins)
Treasure_time: 20
# version 1.2 update: placeholder support and custom line message
# If Treasure_haveExpEarn = false, the treasure will not have exp drop
Treasure_haveExpEarn: true
# Version 1.7 update
# whether have particle effect
Treasure_particle: true
# Version 1.1 update
# Enable treasure commands
Treasure_command_enable: false
# Version 4.17 update
# Enable the spawn treasure commands
Spawn_treasure_command_enable: false
# Version 4.2 update
# Enable the despawn treasure commands
Despawn_treasure_command_enable: false
# Version 1.1 update
# whether have those item above
Treasure_item_enable: true
# Version 3.8 update
# remain time setting
Treasure_hologram_enable: true
Hologram_message_ready: "&7Checking remain time..."
Hologram_message: "&7Remain: &6%min% &7mins &6%sec% &7sec"
# Version 4.0 update
# Add the replace type
Replace_check:
 - AIR
 - GRASS
 - TALL_GRASS
 - FERN
 - LARGE_FERN
 - ALLIUM
 - AZURE_BLUET
 - BLUE_ORCHID
 - DANDELION
 - CORNFLOWER
 - LILY_OF_THE_VALLEY
 - OXEYE_DAISY
 - POPPY
 - POTTED_POPPY
 - ORANGE_TULIP
 - PINK_TULIP
 - RED_TULIP
 - WHITE_TULIP
 - WITHER_ROSE
 - DEAD_BUSH
 - BROWN_MUSHROOM
 - RED_MUSHROOM
 - SNOW

data.yml


# Showing the day and the treasure was shown.
# It will reset after week,if > 7, then day = 0, treasure = 0;
Day: 0
Treasure_Show: 0

message.yml


# Replace message
Same_item_warn: "&cThis item already exist in replace list"
# Replace GUI
Replace_GUI_title: "Replace List (Page.%page%)"
Replace_GUI_back: "&6Back to main menu"
Replace_GUI_item_lore:
 - ""
 - "&aClick to remove this item"
# Treasure setting GUI item lore
Treasure_Setting_GUI_item_lore: "&8↓ Command(s) and texture setting"
Treasure_Setting_GUI_item_down_lore:
 - "&aLeft-Click to edit the command"
 - "&eMiddle-Click to add new command"
 - "&bRight-Click to change the line"
 - "&cShift+Left-Click to change the texture"
 - "&DShift+Right-Click to remove this command"
# World Edit GUI item lore
World_Edit_GUI_item_lore: "&8Control world setting"
World_Edit_GUI_item_down_lore:
 - "&aLeft-Click to edit the line"
 - "&bRight-Click to change the edit line"
 - "&cShift+Right-Click to remove this world"
# Placeholder
No_exist_treasure: "&7Don't have any treasure"
Monday: "&cMonday"
Tuesday: "&6Tuesday"
Wednesday: "&eWednesday"
Thursday: "&aThursday"
Friday: "&bFriday"
Saturday: "&9Saturday"
Sunday: "&dSunday"
# Player GUI
TR_player_GUI_title: "LuckyTreasure - Main"
TR_player_GUI_back: "&6Back to main menu"
TR_player_GUI_content_item_name: "&6Treasure Content"
TR_player_GUI_content_item_lore:
 - "&8Check what items inside the treasure"
 - ""
 - "&aClick to open the treasure content"
TR_player_GUI_exist_item_name: "&bExist treasure"
TR_player_GUI_exist_item_lore:
 - "&8Check how man treasure exist now"
 - ""
 - "&aClick to open the exist treasure"
TR_exist_GUI_title: "Exist treasure (Page.%page%)"
TR_exist_back: "&6Back to main menu"
# Exist GUI
TR_exist_player_GUI_item_lore:
 - "&8Look on this treasure remain time"
 - "&8Also where is this and range"
 - "&7Remain time: &b%min% &7min &b%sec% &7sec"
 - "&7Range: &6%range%"
 - "&7World: &6%world%"
TR_exist_admin_GUI_item_lore:
 - "&8Look on this treasure remain time"
 - "&8Also where is this and range"
 - "&7Remain time: &b%min% &7min &b%sec% &7sec"
 - "&7Range: &6%range%"
 - "&7World: &6%world%"
 - ""
 - "&aLeft-Click teleport to the treasure"
 - "&bShift+Right-Click remove this treasure"
# GUI
TR_GUI_title: "LuckyTreasure - Main"
TR_config_item_name: "&eConfig setting"
TR_config_item_lore:
 - "&8Control all config setting"
 - ""
 - "&aClick to open the config setting"
TR_content_item_name: "&aContent view"
TR_content_item_lore:
 - "&8Enter the lucky treasure gui"
 - "&8Or enter the exist treasure view"
 - ""
 - "&aLeft-Click to open the content view"
 - "&bRight-Click to open the treasure exist"
TR_treasure_item_name: "&6Treasure setting"
TR_treasure_item_lore:
 - "&8Including commands and textures"
 - ""
 - "&aLeft-Click to open the treasure setting"
 - "&bRight-Click to open the replace block list"
# Config edit GUI
Config_status_enable: "&2Enabled"
Config_status_disable: "&4Disabled"
Config_edit_GUI_title: "Main - Config Setting"
Config_edit_GUI_Back: "&6Back to the main menu"
Config_detect_world_name: "&bDetect World"
Config_detect_world_lore:
 - "&8Check the treasure time in detect world"
 - "&8It can change the detect world"
 - "&8by enter the world name"
 - "&7Status: &b%world%"
 - "&cIt may needs to restart the server"
 - ""
 - "&aClick to change the detect world"
Config_disable_random_treasure_name: "&eDisable Random Treasure"
Config_disable_random_treasure_lore:
 - "&8Check whether not spawn treasure in random time"
 - "&7Status: %status%"
 - ""
 - "&aClick to change the status"
Config_GUI_back_button_name: "&6Gui Back button"
Config_GUI_back_button_lore:
 - "&8Check whether have back button in &6/tr"
 - "&7Status: %status%"
 - ""
 - "&aLeft-Click to change the status"
 - "&bRight-Click to change the back command"
Config_max_treasure_name: "&cMax Treasure"
Config_max_treasure_lore:
 - "&8Check the maximum treasure"
 - "&8spawn by week"
 - "&7Status: &c%status%"
 - ""
 - "&aClick to change the max treasure"
Config_no_treasure_name: "&dNo Treasure"
Config_no_treasure_lore:
 - "&8Checking how many percentage will"
 - "&8not spawn the random treasure"
 - "&7Status: &d%value%%"
 - ""
 - "&aClick to change the no treasure value"
Config_enable_world_name: "&6Enable World"
Config_enable_world_lore:
 - "&8Control the treasure in which world"
 - "&8You may add the world by enter the name"
Config_enable_world_down_lore:
 - ""
 - "&aLeft-Click to enter a new enable world"
 - "&bRight-Click to open the world edit"
Config_treasure_time_lower_upper_name: "&6Treasure Time Lower And Upper"
Config_treasure_time_lower_upper_lore:
 - "&8Control the minimum time to spawn random treasure"
 - "&8For minecraft &60    &7= &e0 tick     &7= &b6:00am"
 - "&8For minecraft &620000 &7= &e20000 ticks &7= &b2:00am"
 - "&8Careful this variable type is LONG"
 - "&7Status: &6%lower%&7-&6%upper%"
 - ""
 - "&aClick to change the treasure time lower and upper"
Config_treasure_time_name: "&bTreasure Time"
Config_treasure_time_lore:
 - "&8Control the treasure existing time"
 - "&8You must to know &620 &7= &b20minutes"
 - "&7Status: &b%time% min&7(s)"
 - ""
 - "&aClick to change the treasure time"
Config_treasure_exp_name: "&2Treasure Exp Earn"
Config_treasure_exp_lore:
 - "&8Control whether have exp in treasure"
 - "&7Status: %status%"
 - ""
 - "&aClick to change the status"
Config_treasure_particle_name: "&dTreasure Particle and Hologram"
Config_treasure_particle_lore:
 - "&8Control whether have particle"
 - "&8and hologram around the treasure"
 - "&7Particle Status: %status%"
 - "&7Hologram Status: %hologram%"
 - ""
 - "&aLeft-Click to change the particle status"
 - "&bRight-Click to change the hologram status"
Config_treasure_command_name: "&bTreasure Command"
Config_treasure_command_lore:
 - "&8Control whether have execute commands"
 - "&8When open the treasure"
 - "&7OpenStatus: %status%"
 - "&7SpawnStatus: %spawn%"
 - ""
 - "&aLeft-Click to change the open status"
 - "&bRight-Click to change the spawn status"
Config_treasure_item_name: "&eTreasure Item"
Config_treasure_item_lore:
 - "&8Control whether have item(s) in treasure"
 - "&8when open the treasure"
 - "&7Status: %status%"
 - ""
 - "&aClick to change the status"
# World edit GUI
World_edit_GUI_title: "World Edit (Page.%page%)"
World_edit_GUI_Back: "&6Back to the config setting"
# Treasure setting GUI
Treasure_setting_GUI_title: "Treasure setting (Page.%page%)"
Treasure_setting_GUI_Back: "&6Back to the mainmenu"
# Treasure GUI
GUI_title: "LuckyTreasure (Page.%page%)"
GUI_back: "&6Back to the main menu"
GUI_previous: "&7Previous page"
GUI_next: "&7Next page"
GUI_close: "&cClose Menu"
# Version 1.8 update
# Players can see the /tr gui treasure down lore
Treasure_Lore:
 - "&7Exp: &e%exp%"
 - "&7Chance: &a%chance%"
GUI_player_treasure_down_lore:
 - ""
 - "&aLeft-click to open treasure content"
# Admins can see the /tr gui treasure down lore
GUI_admin_treasure_down_lore:
 - ""
 - "&aLeft-Click to open treasure edit"
 - "&eMiddle-Click to rename the treasure"
 - "&bShift+Right-Click to remove this treasure"
# Version 1.8 update
# Inside the treasure inv back name
GUI_create_treasure_back: "&6Back to lucky treasure"
# Version 1.8 update
# Inside the treasure inv title
GUI_ceate_treasure_title: "%treasure% (Page.%page%)"
# Barrier name
GUI_no_perm_name: "&cNo Permission"
# Admins can see
GUI_create_treasure_info_name: "&7Treasure setting"
GUI_create_treasure_info_lore:
 - ""
 - "&aLeft-Click to edit the chance"
 - "&bRight-Click to edit the exp"
GUI_create_treasure_name: "&7Create treasure"
GUI_create_treasure_lore:
 - ""
 - "&aClick to create a custom treasure"
# Version 1.8 update
GUI_player_create_treasure_item_lore:
 - "&7Chance: &a%chance%"
 - "&7Lower: &6%lower%"
 - "&7Upper: &6%upper%"
GUI_create_treasure_item_lore:
 - "&7Chance: &a%chance%"
 - "&7Lower: &6%lower%"
 - "&7Upper: &6%upper%"
 - ""
 - "&aLeft-Click to edit the chance"
 - "&eMiddle-Click to edit the quantity"
 - "&bShift+Right-Click to remove this item"
# Time and Location Message (FOR admin)
Treasure_no_location_message: "&7[&eLucky&6Treasure&7] &7It doesn't have any treasure location now"
Treasure_location_message: "&7[&eLucky&6Treasure&7] %location%"
Treasure_time_message: "&7[&eLucky&6Treasure&7] Treasure time: &b%time%"
# Reload Message
Reload_message: "&7[&eLucky&6Treasure&7] &aThis plugin has been reload."
# Version 1.5 update
# Help Message
Help_message: "&7[&eLucky&6Treasure&7] &cDid you use the wrong method of this command? Try &6/tr help"
# Version 1.5 update
# No-perm Message
No_perm_message: "&7[&eLucky&6Treasure&7] &cYou don't have permission"
# Treasure message
GetTreasure_message:
 - "&7[&eLucky&6Treasure&7] &7Player &6%player% &7has found %treasure%"
OpenPlayer_title_message: "%treasure%"
OpenPlayer_subtitle_message: "is found!"
# version 1.2 update: placeholder support and custom line message
Message:
 - "&7[&eLucky&6Treasure&7] %treasure% &7has been found in &6%world% &7It will gone at &b%time%m&7. Treasure is near at &6%treasure_X%&7, &6%treasure_Z%&7."
Gone_message: "&7[&eLucky&6Treasure&7] &7One of the %treasure% &7is gone..."
# Version 2.4
# for admin to know today have treasure
Have_treasure_today_message: "&7[&eLucky&6Treasure&7] &7It will show up a &6treasure &7today!"

treasure.yml


# Treasure SETTING, You can made you own treasure and check it in /tr gui!
# Treasure EXP
Treasure_exp:
 common: 1000
 normal: 2000
 better: 5000
 perfect: 10000
 mystery: 50000
 #example_treasure: 100
# Treasure name
Treasure_name:
 common: "&f&lCommon Treasure"
 normal: "&a&lNormal Treasure"
 better: "&e&lBetter Treasure"
 perfect: "&6&lPerfect Treasure"
 mystery: "&d&lMystery Treasure"
 #example_treasure: "&7&lExmaple Treasure"
# Version 1.7 update
# Treasure texture (base64)
Treasure_texture:
 common: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMmJkZDYyZjI1ZjRhNDljYzQyZTA1NGEzZjIxMmMzZTAwOTIxMzgyOTkxNzJkN2Q4ZjNkNDM4MjE0Y2E5NzJhYyJ9fX0="
 normal: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTZjNGFjMDA3MzZkODU1MWM4Y2VkNGNmNWQ4NTJjMDVmYjhmZGU3NDNkZWNhNmRhMzM0YzgxNTRiMmVlYzNmNyJ9fX0="
 better: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODA0NTc0MzkxMGYyM2NlY2ZmMTAwOGFiNmFkZjc5N2Q4ZTYyOTdiMmE0M2M3MGRmNTcyZjJlODI0NTY5NzIzNyJ9fX0="
 perfect: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTg1NTk0Yjc4ZThmYjNlM2JkN2NlM2NlMmJmYTk0ZjEzOGE5ZWJjMWJhZWQ2NzlhZWJmNWY2M2QxOTYxYzhkZSJ9fX0="
 mystery: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjdkZjM5OTFkOTE4Zjk1OTI0OGZjZjg0ZjE3YmI2NTJkMTJiN2Y4NjI5MWQ1MjIyN2MyNWU5MjlmMmU0YjRkZiJ9fX0="
 #example_treasure: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMmJkZDYyZjI1ZjRhNDljYzQyZTA1NGEzZjIxMmMzZTAwOTIxMzgyOTkxNzJkN2Q4ZjNkNDM4MjE0Y2E5NzJhYyJ9fX0="

# Treasure chance (0.5 = 50%, 0.001 = 0.1%)
Chance:
 common: 0.4
 normal: 0.35
 better: 0.15
 perfect: 0.07
 mystery: 0.03
 #example_treasure: 0.2

# Version 4.17 update
# Command that when treasure is spawned
# %world% as spawn treasure world
# %x%, %y%, %z% as the location X, Y, Z
Spawn_treasure_command:
 common:
  0:
   chance: 0.5
   command: summon zombie %x% %y% %z%
 normal:
  0:
   chance: 0.5
   command: summon zombie %x% %y% %z%
 better:
  0:
   chance: 0.5
   command: summon zombie %x% %y% %z%
 perfect:
  0:
   chance: 0.5
   command: summon zombie %x% %y% %z%
 mystery:
  0:
   chance: 0.5
   command: summon zombie %x% %y% %z%
 #example_treasure:
  #0:
   #chance: 0.5
   #command: summon zombie %x% %y% %z%

# Version 4.2 update
# Command that when treasure no one find and despawn
# %world% as spawn treasure world
# %x%, %y%, %z% as the location X, Y, Z
Despawn_treasure_command:
 common:
  0:
   chance: 1
   command: summon zombie %x% %y% %z%
 normal:
  0:
   chance: 1
   command: summon zombie %x% %y% %z%
 better:
  0:
   chance: 1
   command: summon zombie %x% %y% %z%
 perfect:
  0:
   chance: 1
   command: summon zombie %x% %y% %z%
 mystery:
  0:
   chance: 1
   command: summon zombie %x% %y% %z%
   #example_treasure:
   #0:
   #chance: 0.5
   #command: summon zombie %x% %y% %z%

# Version 1.1 update
# Command that when treasure is opened (%player% as open player name)
# Version 3.6 update
# %world% as open treasure of the world
# %x%, %y%, %z% as the location X, Y, Z
Treasure_command:
 common:
  0:
   chance: 0.5
   command: money give %player% 1
 normal:
  0:
   chance: 0.5
   command: money give %player% 1
 better:
  0:
   chance: 0.5
   command: money give %player% 1
 perfect:
  0:
   chance: 0.5
   command: money give %player% 1
 mystery:
  0:
   chance: 0.5
   command: money give %player% 1
 #example_treasure:
  #0:
   #chance: 0.5
   #command: money give %player% 1

# Treasure setting (chance: 0.2 -> 20%) to drop the item
# at least of value = lower, max value = upper
Treasure:
 common:
  COAL:
   lower: 128
   upper: 192
   chance: 0.5
  GOLDEN_APPLE:
   lower: 8
   upper: 16
   chance: 0.4
  LEATHER:
   lower: 32
   upper: 64
   chance: 0.5
  GOLD_INGOT:
   lower: 32
   upper: 64
   chance: 0.5
  ARROW:
   lower: 128
   upper: 192
   chance: 0.4
 normal:
  LEATHER:
   lower: 64
   upper: 128
   chance: 0.5
  GOLD_BLOCK:
   lower: 16
   upper: 32
   chance: 0.4
  OBSIDIAN:
   lower: 32
   upper: 64
   chance: 0.4
  ENCHANTED_GOLDEN_APPLE:
   lower: 1
   upper: 2
   chance: 0.2
  DIAMOND_BLOCK:
   lower: 6
   upper: 12
   chance: 0.3
 better:
  ENDER_PEARL:
   lower: 32
   upper: 64
   chance: 0.3
  BLAZE_ROD:
   lower: 16
   upper: 64
   chance: 0.5
  DIAMOND_BLOCK:
   lower: 4
   upper: 8
   chance: 0.3
  ENCHANTED_GOLDEN_APPLE:
   lower: 2
   upper: 4
   chance: 0.1
  NETHER_STAR:
   lower: 1
   upper: 3
   chance: 0.3
 perfect:
  DIAMOND_BLOCK:
   lower: 8
   upper: 16
   chance: 0.3
  NETHER_STAR:
   lower: 4
   upper: 5
   chance: 0.4
  GOLD_BLOCK:
   lower: 32
   upper: 64
   chance: 0.5
  NETHERITE_SCRAP:
   lower: 16
   upper: 32
   chance: 0.2
  ENCHANTED_GOLDEN_APPLE:
   lower: 4
   upper: 6
   chance: 0.2
 mystery:
  NETHERITE_SCRAP:
   lower: 32
   upper: 64
   chance: 0.2
  ENCHANTED_GOLDEN_APPLE:
   lower: 6
   upper: 8
   chance: 0.4
  TOTEM_OF_UNDYING:
   lower: 1
   upper: 2
   chance: 0.3
  END_CRYSTAL:
   lower: 5
   upper: 10
   chance: 0.3
  TRIDENT:
   lower: 1
   upper: 1
   chance: 0.2
   #example_treasure:
   #DIAMOND:
   #lower: 100
   #upper: 300
   #chance: 0.5

world.yml


# Version 2.7 update
# The range of treasure for each world
World:
 world:
  # chance to half neg location (default: 20% -> 0.2)
  Half_Neg_location: 0.2
  # chance to neg location (default: 50% -> 0.5)
  Neg_location: 0.5
  # set max range of the treasure (default: 30000 -> 0-30000)
  Treasure_X_lower: 0
  Treasure_X: 30000
  Treasure_Z_lower: 0
  Treasure_Z: 30000
  # Treasure Y detection
  # Treasure Y Max means if check the block Treasure_Y to Treasure_Y_Max still has space
  # If not, It will change other position to spawn treasure
  Treasure_Y: 5
  Treasure_Y_Max: 100
  # send players information of the treasure setting (neg and pos)
  # It means the message for players is random -30 to 30 range of the treasure real location
  Range_X: 30
  Range_Z: 30
  # version 4.19
  # (optional) override the chance of treasure
  Treasure:
   # whether override the chance
   # if this set to true, must contain
   # all the treasure type in below chance
   override: true
   # the chance list
   chance:
    common: 0.5
    normal: 0.5
    better: 0.5
    perfect: 0.5
    mystery: 0.5

🔗链接

感谢您分享我的插件!如果你的服务器版本低于 1.15,请下载此版本。如果您的服务器使用的是核心而不是普通的 Spigot 或 Paper,您可能需要使用上面的链接下载版本 X。对于中文服务器,请使用上面的链接下载版本 CN。

该插件需要 PlaceholderAPI