#random kit

1 messages ยท Page 1 of 1 (latest)

supple mountain
#

Thats nice

#

If you want someone to make that for you head over to #job-board; this is a place for when you need help fixing an issue within your code that you made

hardy moss
#

oh it didnt send

obsidian lark
#

Why people using pastebin for it ๐Ÿ˜๐Ÿ˜

supple mountain
#

okay;
ive noticed some things.

  • line 7: what are you trying to do with on spawn? thats an event for when mobs spawn, but you are trying to use (event-)player there
  • please use else ifs in the function. you can also use lists to make that easier.
  • you may want to clear the inventory before giving kits to avoid people keeping other items and having duplicates
  • line 139 use else if
#

you here havent stated any errors so ive just pointed out things i noticed.

In the future always let people know what the problem is

supple mountain
hardy moss
#

ok ty

obsidian lark
#

Iโ€™m on phone and donโ€™t feel like checking pastebin

supple mountain
#

heres an example of what I mean by lists for the kits:```set {_list::1::} to diamond, emerald, and potato
set {_list::2::
} to diamond, emerald, and gold ingot
set {_list::3::} to diamond, potato, and gold ingot
set {_list::4::
} to potato, emerald, and gold ingot

give {_p} {_list::%random integer from a to b%::*}```