#Syntax Issues

1 messages · Page 1 of 1 (latest)

sullen cave
#

When I give out an ax with properties, an error pops up. What to do?

#

left_click_commands: - '[console] lp user %player_name% permission set santahelp.1' - '[console] minecraft:effect give %player_name% minecraft:resistance 999999 255 true' - '[console] minecraft:effect give %player_name% minecraft:night_vision 999999 255 true' - '[console] minecraft:effect give %player_name% minecraft:jump_boost 999999 2 true' - '[console] minecraft:effect give %player_name% minecraft:speed 999999 4 true ' - '[console] minecraft:give @a diamond_axe{display:{Name: ' [{"text":"Топор Санта","italic":false,"color":"green"}]',Lore:['[{"text":"Используйте для ломания подарков","italic":false}]']},Enchantments:[{id:efficiency,lvl:5},{id:silk_touch,lvl:1}],HideFlags:1,CanDestroy:["minecraft:player_head"]} 1' - '[refresh]'

#

give command give @a diamond_axe{display:{Name: ' [{"text":"Топор Санта","italic":false,"color":"green"}]',Lore:['[{"text":"Используйте для ломания подарков","italic":false}]']},Enchantments:[{id:efficiency,lvl:5},{id:silk_touch,lvl:1}],HideFlags:1,CanDestroy:["minecraft:player_head"]} 1

chrome bear
#

it's because you're trying to put single quotes ' inside of a set of single quotes ''

#
string: 'this don't work'
string: 'this don''t work' #this works

you have to use 2 single quotes ' if you want to put it inside, like this

sullen cave
#

and one more question. How to do cooldown between console commands.

#

For example:

#

give %player_name% slimeball

odd sorrelBOT
sullen cave
#

[massage] hello

chrome bear
#

you can use that for cooldowns on items

#

not specific commands on each item tho

chrome bear
sullen cave
#

I think I didn't explain exactly.
Example:
'[console] minecraft:give %player_name% wood_axe' WAIT 5 SEC '[message] Hello'

#

how to do this cooldown

chrome bear
#

add <delay=100> to [message] Hello

#

'[message] Hello<delay=100>'

sullen cave
#

thx u

#

very match

sullen cave
#

very sorry for my stupid me. How to do,that message see all players on server

#

again sorry for stupid