TO SEE All news features in video join this discord channel: UPDATE
Fix an issue with worldguard regions.
PREMIUM New for the activator PLAYER_WRITE_COMMAND, you can use the arguments of the written command in your EI commands and in the EI placeholders conditions.
%arg0% = the command
%arg1% = the first arg
%arg2% = the second arg
....
Example the player type
/modify 5
%arg0% = /modify
%arg1% = 5
So we can imagine an item like that:
(A sword where you can choose the damage dealth with the command /setdamage {number}*)
Code (YAML):
name
: ''
lore
:
[
]
material
: DIAMOND_SWORD
glow
: false
glowDrop
: false
glowDropColor
: WHITE
disableStack
: false
keepItemOnDeath
: false
give-first-join
: false
give-slot
: 0
usage
: 0
usePerDay
: -1
usageLimit
: -1
disable-world
:
[
]
unbreakable
: false
canBeUsedOnlyByTheOwner
: false
storeItemInfos
: false
config_4_2
: true
config_update
: true
headDBID
: ''
activators:
activator1:
activator
: PLAYER_CLICK_ON_ENTITY
displayName
: Activator name
usageModification
: 0
usePerDay
: -1
cancelEventIfMaxUsePerDay
: false
autoUpdateItem
: false
commands
:
[
]
silenceOutput
: false
entityCommands
:
- DAMAGE
%var_damage%
cancelEventIfInvalidRequiredExecutableItems
: false
detailedClick
: LEFT
cancelEvent
: true
activator2:
activator
: PLAYER_WRITE_COMMAND
displayName
: Activator name
usageModification
: 0
usePerDay
: -1
cancelEventIfMaxUsePerDay
: false
autoUpdateItem
: false
commands
:
[
]
silenceOutput
: false
detailedCommands
:
- /setdamage
cancelEventIfInvalidRequiredExecutableItems
: false
cancelEvent
: false
variablesModification:
damage:
type
: SET
modification
: '
%arg1%'
detailedEntities
:
[
]
durability
: 1561
variables:
damage:
type
: NUMBER
default
: 0.0
Good dev, if you have problem or suggestion join my discord !