Datas

Introduction

  • TrMenu provides two data types: Meta and Data
    • The Meta is stored in the plugin's memory and will be reset on reload
    • The Data is stored in a SQLite database and will be kept until erased (check the /plugins/TabooLib/playerdata/folder)

Usage

After you defined the Meta/Data, you can call them with the following placeholders:
1
{meta:<KeyName>}
Copied!
1
{data:<KeyName>}
Copied!

Example

1
Bee:
2
update: [-1, -1, -1, 20]
3
display:
4
material: '<skull:b727d0ab03f5cd022f8705d3f7f133ca4920eae8e1e47b5074433a137e691e4e>'
5
name: '&eBee ~'
6
slots:
7
- [9]
8
- [18]
9
- [28]
10
- [29]
11
- [30]
12
- [31]
13
- [32]
14
- [33]
15
- [34]
16
- [35]
17
- [26]
18
- [16]
19
- [15]
20
- [14]
21
- [13]
22
- [12]
23
- [11]
24
- [10]
25
actions:
26
all:
27
# Here, we set the meta angryBee to true
28
- 'set-meta: angryBee true'
29
- 'sound: ENTITY_ENDERMAN_HURT-1-2'
30
# Then we refresh and remove it at the same time to make the icon change a bit random
31
- 'rem-meta: angryBee &&& refresh &&& sound: ENTITY_SPIDER_STEP-1-2<Delay=80>'
32
- 'refresh'
33
icons:
34
# We then check for the angreeBee meta, if it equals true, it will display this icon
35
- condition: 'equals.{meta:angryBee}.true'
36
inherit: true
37
display:
38
name: '&cBee &4~'
39
material: '<skull:e6b74e052b74288799ba6d9f35c5d0221cf8b04331547ec2f68d73597ae2c9b>'
40
actions:
41
all: 'sound: ENTITY_ENDERMAN_HURT-1-2'
Copied!
Last modified 1yr ago
Copy link