🌳Custom Guild Tree Water Bottle
Example
Create a new kettle and display it in the divine tree interface.
The kettle ID is an
远古水壶
Using this pot requires a fee of 1000 coin
Using this pot requires the consumption of
32 diamonds
To use this pot , you need to consume 1 custom item
&c水壶兑换权券
Increase 1000 guild tree exp and 5000 guild points after use
20% chance of returning 200 points after use
Can only be used once a day
pots:
远古水壶:
display: '&4&l&n远古水壶'
requirements:
- 'item;DIAMOND;0;32'
- 'customitem;&c水壶兑换权券;1'
- 'playerpoints;1000'
run:
- '[console]points give %player% 200 ~chance:0.2'
day: 1
addExp: 1000.0
addPoints: 5000.0
Display the kettle in the guild tree GUI
Add the following under customItem
in GuildTree.yml
:
customItem:
远古水壶:
display: '&4&l&n远古水壶'
material: BUCKET
data: 0
model: 0
#%use% represents the number of times the kettle has been used today
lore:
- '&f '
- '&7use demands:'
- '&f - PlayerPoints×1000'
- '&f - Diamond×32'
- '&f - &c水壶兑换券×1'
- '&7Add Exp: &a1000'
- '&7Can Earn Points: &a5000点'
- '&f'
- '&cLimited to &a%use%/1 &ctimes per day.'
fuction:
type: pot
#Corresponding to the kettle ID in WaterPots.yml
value: 远古水壶
slot: [43]
Last updated