Commands run differently under skript

Discussion in 'Skript' started by MassiveZappy, Jul 27, 2020.

  1. Why does this not work...
    Code (Text):
    every 10 ticks:
      execute console command "execute as @e[type=minecraft:player] if block ~ ~-1 ~ minecraft:grass_block run effect give @s minecraft:slowness 2 2"
    Also how do I run a command that contains dubble quotes.
    Code (Text):
    make player execute command "summon minecraft:horse ~ ~1 ~ {CustomName:"\"1\"",CustomNameVisible:1,NoAI:1b,CanPickUpLoot:0b,Attributes:[{Name:"generic.knockbackResistance",Base:1f},{Name:"generic.movementSpeed",Base:1f},{Name:"horse.jumpStrength",Base:2f}],Silent:1,Invulnerable:1,SaddleItem:{id:saddle,Count:1},Age:0,Tame:1}"
  2. Keep insert quotes until error is gone.
    Here is the code.
    Code (Text):
    on rightclick:
        execute player command "summon minecraft:horse ~ ~1 ~ {CustomName:""\""1\"""",CustomNameVisible:1,NoAI:1b,CanPickUpLoot:0b,Attributes:[{Name:""generic.knockbackResistance"",Base:1f},{Name:""generic.movementSpeed"",Base:1f},{Name:""horse.jumpStrength"",Base:2f}],Silent:1,Invulnerable:1,SaddleItem:{id:saddle,Count:1},Age:0,Tame:1}"
  3. you have to double your quotes if you're using quotes inside quotes

    also why you're using vanilla minecraft commands for this? Skript can do it without commands

    on walking on grass block:
    apply slowness 2 to player for a second
  4. Thanks!
    P.S. If anyone here wants to teach me, answer silly questions here and there, message me on discord! MassiveZappy™#2172
    #4 MassiveZappy, Jul 28, 2020
    Last edited: Jul 28, 2020
  5. You are not accepting any friend requests :p