最MC论坛

标题: [娱乐]Phatloots——更好的宝箱插件[1.7-1.8]内含教程+全局性 [打印本页]

作者: 饿狼灬青岛    时间: 2018-9-2 02:23
标题: [娱乐]Phatloots——更好的宝箱插件[1.7-1.8]内含教程+全局性
本帖最后由 饿狼灬青岛 于 2018-9-2 03:58 编辑

前几个大佬搬运插件的插件
http://www.zuimc.com/forum.php?mod=viewthread&tid=53874&highlight=phatloots
http://www.zuimc.com/forum.php?mod=viewthread&tid=46368&highlight=phatloots  qwq,该贴将更加完善这款插件的功能         

Phatloots:
一款适合GTA、行尸走肉、末日生存服务器的插件

插件指令:
/loot make <name> 创造一个宝箱ID
/loot look <name> 看着一个箱子,把他变成宝箱
/loot gui <name> 打开宝箱的物品gui界面(可拿出物品)
/loot add hand #1(数量) %10(概率) 将手持物品添加到宝箱(看着宝箱)
/loot time set <天> <时> <分> <秒>  (比如 /loot time set 0 0 10 0=10秒) 同上,需要看着箱子

                                                                                              全局性:
AutoLink:
#    all:
#        Melon Block: melons
    世界名:
        Chest: [宝箱名字]
        Trapped_Chest: [宝箱名字]
       (以上内容复制粘贴即可)
    找到Phatloots文件夹 找到 config.fml 搜索 AutoLink
(我的config.yml 文件夹里宝箱名字为:bx)

宝箱物品随机摆放:
找到Phatloots文件夹 找到 config.fml 搜索 ShuffleLoot
#如果设置为true,物品会分散在整个箱子而不是左上角
ShuffleLoot: false (默认)

                                                                        
配置文件(config
)
##Config file for PhatLoots##Plugin made by Codisimus


################## Linkables #################

##You may disable any of these features by setting them to false
##You should disable all of these that you will not be using

##如果你的服务器上有很多物品都有很多传说,那么使用战利品包可能会造成延迟
LootBags: false
##如果使用战利品包,如果你的服务器上的玩家能够修改物品的传说,就会有安全威胁
##在这种情况下,你应该把这把钥匙换成别的东西(比如&3&8&4&r&0)并保守秘密
LootBagKey: '&r&0'

##如果服务器上有相当数量的红石高配,那么使用分配器可能会导致明显的延迟
##这也适用于滴管
DispenserLoot: true

##如果服务器上有大量的怪物,使用moblood可能会导致明显的延迟
##比如. 僵尸 , 爬行者 , 骷髅 , 蜘蛛 , 玩家
MobDropLoot: true
##比如. 僵尸生成, 骷髅生成, 村民生成
MobSpawnLoot: true

##World Mob Loots should be disabled if you only have one World
##e.g. Zombie@MainWorld, Zombie@DungeonWorld
WorldMobDropLoot: true
##e.g. ZombieSpawn@MainWorld, ZombieSpawn@DungeonWorld
WorldMobSpawnLoot: true

##Region Mob Loots are automatically disabled if RegionOwn or WorldGuard is not installed
##e.g. Zombie@Graveyard, Spider@Nest
RegionMobDropLoot: true
RegionMobSpawnLoot: true

##Mob Types should be enabled if you want to distinguish between different types of Zombies, Skeletons, Villagers, etc.
##e.g. BabyZombie, WitherSkeleton, PriestVillager
MobTypes: true

##Named Mobs should be enabled if you want to have mobs drop loot based on their name
##e.g. ZombieBoss, Skeletor, Paul the Priest
NamedMobs: true

##Fishing Loot should be enabled to modify what Players can fish out of the water
##e.g. Fishing
FishingLoot: true

##Votifier Loot should be enabled to modify give Players loot whenever they Vote (Powered by Votifier)
##The Vote PhatLoot should be set to autoloot and give little loot to not cause issues with numerous votes at once
##e.g. Vote
VotifierLoot: false

##只有下面列出的块状材料才能连接
##Removing unused materials from this list will help reduce the use of uneeded resources
Blocks:
    - Chest (箱子)
    - Trapped Chest (陷阱箱)
    - Ender Chest (末影箱)
    - Dispenser (酿造台(猜的))
    - Dropper (滴下的东西)
    - Bookshelf (书架)

##指定世界中匹配列出的材料的每个块都将链接到给定的PhatLoot
##这里列出的块不需要在上面的“块”中列出
##我已经注释掉了这些默认设置,因为没有人愿意阅读和替换它们
##为了设置这个特性,您必须删除空方括号 []
AutoLink:
#    all:
#        Melon Block: melons
    world:
        Chest: bx
        Trapped_Chest: bx



################## MOB LOOTS #################

##如果设置为true,通常由暴民掉落的物品将消失
##如果设置为false, PhatLoot怪物物品将会在掉落的战利品之外
##无论哪种情况,如果没有PhatLoot文件,暴民的战利品都不会受到影响
ReplaceMobLoot: true


##如果设置为true,暴民不会掉落任何物品和经验,除非他们被玩家杀死
OnlyDropLootWhenKilledByPlayer: false
OnlyDropExpWhenKilledByPlayer: false


##如果暴民通过这个插件产生物品,这是物品被丢弃的可能性 (0 - 100)
MobLootDropPercentage: 20


##This setting is used when a weapon has the Looting enchantment
##Each level will give an extra percentage chance when rolling for loots
##e.g. LootingBonusPerLevel = 5
##     Zombies drop 1 rotten flesh 50% of the time
##     A zombie is killed with a sword that has Looting IV
##     1 rotten flesh would then be dropped at a 70% chance
##     50% + (5% x 4 levels)
LootingBonusPerLevel: 5



################## MESSAGES ##################

##These are the messages that Players will see while using PhatLoots
##Blank messages will not be shown
##Use & to specify colors for messages (ex. &3hi&a.)
##<time>
##<item>
##<amount> will be replaced by the amount of money/experience/items
Messages:
    Permission: '&4你没有被允许这样做.'
    ExperienceLooted: '&5你获得了&6<amount>&5经验.'
    MoneyLooted: '&5你抢劫了&6<amount>&5.'
    MoneyCharged: '&5你更改了&6<amount>&5.'
    InsufficientFunds: '&4你需要&6<amount>&4来打开箱子.'
    AutoLoot: '&5你获得了&6<item>&5.'
    Overflow: '&5箱子里装满了物品!'
    ChestTimeRemaining: '&4你需要等待 &6<time>&4才能获得该箱子另外的补给!'
    EmptyChestTimeRemaining: '&4你需要等待 &6<time>&4才能获得该箱子另外的补给!'
    CommandTimeRemaining: '&4你需要等待 &6<time>&4才能获得该箱子另外的补给!'
    DispenserTimeRemaining: ''
    MobTimeRemaining: '&4你需要等待 &6<time>&4才能获得该箱子另外的补给!'
    MobDroppedMoney: '&5你获得了&6<amount>钱.'
    MobDroppedItem: ''
    MobDroppedExperience: ''
    LootMessage: ''
    LootBroadcast: ''

##PhatLoot Chests will display this name at the top of the Chest GUI
##<name> will be replaced with the name of the linked PhatLoot
ChestName: '&6&l<name>'

#Damage estimates (as ranges) may be added to the lore of loot
#Do so by making a line of lore one of the following tags
UseDamageTags: true
<dam>: '&5<amount> damage'
<holy>: '&6+<amount> holy damage'
<fire>: '&4+<amount> fire'
<bug>: '&2+<amount> bug repellent'
<thorns>: '&8<chance>% chance of 1-4 damage'
<def>: '&5<amount> defense'
<firedef>: '&4+<amount> fire defense'
<rangedef>: '&2+<amount> range defense'
<blastdef>: '&1+<amount> explosion defense'
<falldef>: '&b+<amount> fall defense'


################## DEFAULTS ##################

##Each new PhatLoot will have the following settings by default
##Each of these settings can be changed per PhatLoot after they are made
Defaults:
    ##Amount of time before the PhatLoot is lootable again
    ##Change Days to -1 in order for it to never reset
    ResetTime:
        Days: 1
        Hours: 0
        Minutes: 0
        Seconds: 0


    ##如果设置为true,物品将直接进入玩家的背包
    ##一旦他们的背包满了,物品就会出现在箱子里
    AutoLoot: false


    ##如果设置为true,当被一个人拿完物品时,每个人都必须等待宝箱再次刷新后才能再拿(第一个人得到了赃物)
    ##如果设置为false,当玩家只掠夺一个箱子时,他们必须等待指定的时间再次掠夺(每个玩家都可以获得箱子里的东西)
    GlobalReset: false


    ##如果设置为true,当一个全局性箱子被掠夺时,它将消失,当它可能再次被掠夺时重生 (或服务器关闭时)
    #“UseBreakAndRespawn(该选项默认开启)”必须设置为true后再设置下面为true,以便产生所有效果
    BreakAndRespawn: false


    ##If set to true, loot times will be rounded down to 0
    ##This is good if doing Daily or Hourly loots
    ##e.g.
    ##If ResetTime = 1 Day, 0 Hours, 0 Minutes, and 0 Seconds
    ##   RoundDownTime = true
    ##   Player loots at Day 100, Hour 20, Minute 37, and Second 49
    ##   Values that are 0 in the ResetTime are rounded down
    ##   The loot time is set to Day 100, Hour 0, Minute 0, and Second 0
    ##   This way, the Player can loot the next day even if it is not 24 hours later
    ##If ResetTime = 0 Day, 0 Hours, 5 Minutes, and 0 Seconds
    ##   then only the Seconds value is rounded down (not values to the left of Minutes)
    RoundDownTime: false


    ##The number of items that will be received from the loot collections (if not specified)
    ##An amount of 0 will mean that each loot within the collection is rolled for individually
    ItemsPerColl: 1



################### OTHER ####################

##Players need permission to use restricted PhatLoots
##'phatloots.loot.Epic' or 'phatloots.loot.*' would be needed to loot Epic if it is restricted
##You can add as many PhatLoots to this list as you want, just be sure to use spaces instead of tabs
RestrictAll: false
RestrictedPhatLoots:
    - 'PhatLoot1'
    - 'PhatLoot2'
    - 'PhatLoot3'
#    - 'Rare'
#    - 'Epic'
#    - 'Donator'


##Whenever an Item is generated that has a Tier above this number it will be logged
MinimumTierNotification: 100


##这个设置只在你有插件ChestLock时使用
##如果设置为true,则PhatLoot chest将自动设置为unlockable
SetChestsAsUnlockable: true


##如果你想用小数来表示钱,就把它设为true
##这将使范围从100-1275 变成 1.00-12.75
DivideMoneyAmountBy100: false


PlaySoundOnAutoLoot: true

PlaySoundOnChestBreak: true

UseBreakAndRespawn: true


#如果设置为true,战利品将分散在整个箱子而不是所有在左上角
ShuffleLoot: true


#如果设置为true,提供超过1个项目的集合有机会产生一个特定项目多次
AllowDuplicateItemsFromCollections: true


##这是每个背包在内存中的时间(以秒为单位)
##在库存被遗忘之前没有被掠夺过的物品将会丢失
ForgetInventoryTime: 60


##如果永远不会重置的全球钱箱在抢劫后应该被解除连接,则设置为true (被拿走过的宝箱如果不会刷新物品,会变成普通箱子)
UnlinkGlobalChestsThatNeverReset: false


##如果设置为true'/loot give' 和 '/loot <PhatLoot>'会有冷却
ApplyCooldownToCommandLoot: false


##This is how often (in minutes) the plugin will automatically save the loot times
##If set to 0, Loot times will only be saved when the server is shut down
##This only needs to be set if you worry about losing data in the case of a server crash
AutoSavePeriod: 1440


##This setting will only affect PhatLootChests which are set to GlobalReset and BreakAndRespawn
##If set to true then a Player may punch a chest (single hit) to break it
##The loot will spill all over the ground near the chests location
##This will only apply if BreakAndRespawn=true, and GlobalReset=true
AutoBreakOnPunch: false






                                                                    




作者: yjj    时间: 2019-2-2 17:44
楼主啊 为什么根本 全局性一点用都没有啊
作者: yjj    时间: 2019-2-5 19:44
全局性对于1710需要转码,但是这个全局性怪物[望弄一下!!!]




欢迎光临 最MC论坛 (http://www.zuimc.com/) Powered by Discuz! X3.2