#How to make a custom tool with an effect

1 messages · Page 1 of 1 (latest)

wet portal
#

Right now i have a line of code for my custom items , im trying to make the item be able to break beacon's and only beacons as well as be able to have the effect haste. Is there any way to do it?

set {beaconDestroyer.t1} to nether star named "&r&fBeacon Destroyer &7[&6&lT1&7]" with lore "&f&lCOMMON" and "&7Haste&r &61" with all flags hidden

As of i can make the item names and stuff and add enchantments but I can't add an effect, is there an addon or something i can do to change it ? As well as making it mine the beacon block. please help me!

wet portal
#

!indent

craggy scaffoldBOT
# wet portal !indent

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:

https://i.imgur.com/PbfZ12M.png

sour stream
#

i would use a list for that

#

{beaconDestroyer::t1}

#

and just on mine, check the block and cancel

wet portal
#

i did the fixing wtv the thing mines part

#

i’m just confused on how to do the effect on an item

#

bc i can do set {beaconDestroyer.t1} to nether star of [enchantment] named "&r&fBeacon Destroyer &7[&6&lT1&7]" with lore "&f&lCOMMON" and "&7Haste&r &61" with all flags hidden

#

but i can’t do effects

sour stream
sour stream
wet portal
#

i need haste on it

sour stream
#

on tool change i suppose

wet portal
#

so the code would be
on tool change: set {beaconDestroyer.t1} to nether star named "&r&fBeacon Destroyer &7[&6&lT1&7]" with lore "&f&lCOMMON" and "&7Haste&r &61" with all flags hidden set {beaconDestroyer.t1} with haste 1

#

or am i bugging? @sour stream

sour stream
#

well

  1. theres no need to ping me
  2. code blocks use 3 back ticks at the very beginning and very end, then they span multiple lines: ```code here```
  3. why are you setting the variable there again?
  4. again, use lists
wet portal
#

oh okay