#how would i make this work
1 messages · Page 1 of 1 (latest)
Just check in the event
hm il try
Send code
it summons a arrow when i do the command
/mastersword
but when i right click
nothing
wdym
!indent
Indentation in Skript
In skript, you need to maintain consistent indentation, meaning you cannot indent 1 line 5 spaces, and the next 7 spaces. Usually it’s recommended you use tabs, however.
A good rule of thumb is to always indent the subsequent line whenever the previous statement ends with a :, an exception to this is in command statements with items before the trigger such as permission: or aliases:
With conditional statements and loops, any code that is indented within the statement will be run as a part of the statement, other code will not be run within the statement. Here is an example of proper indentation:
Its a part of the command
Code Blocks
To make it easier for others to read your code, it is asked that you send it in a code block. On Discord, you can simply send this:
```
Code here
```
command /mastersword:
permission:op
trigger:
give player 1 diamond sword named "&b&lMaster &1&lSword" with lore "&b&lOnly the worthy may wield this anchient weapon"
if player's health is 10:
on right click holding a diamond sword
shoot arrow at speed 1
What
it says
Its not in the trigger
so indent
Yes
But
Events
Like on right click
Shouldnt have any spaces infront
They also need :
lol
Skript
If you're interested in learning Skript or simply want to use it on your server, watch the following playlist below to learn how!
so no indent for the event?
alright
it said expected 4 spaces so thats what im puting
putting*
4 spaces
Puts it in the rrigger
Because it think you want it to be a part of the command
But like
ok now it says it cant understand
This does nothing
so what should the 2cd part look like
Idk what you want to do
i want it to shoot a arrow at speed 1 on right click
So do that
it said it doesnt know the code so im doing something wrong
what did you do
if player's health is 10:
on right click if player is holding a diamond sword
shoot arrow at speed 1
and he gave up
...
What have i told you
Like 4 times now
events get 0 indents since they work at the most basic level
if signifies a condition
So it goes
condition:
effect```
You spelled ancient wrong in the original line of skript
idc
💀
on right click with diamond sword: player's health is equal to 10 make the player shoot an arrow at speed 4
that should work, (I am a minimalist)
i know i fixed it