summaryrefslogtreecommitdiff
path: root/gamemode/itemsystem/items/orangeseeds.lua
blob: 33fd698119a9346376d7c04af4d839dacd9c2118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
ITEM = {}

ITEM.Name = "Orange Seeds"
ITEM.Description = "Something you can plant!"
ITEM.Icon = "test.png"
ITEM.UniqueData = false

local drop1 = function(player)
  print("Drop 1 called")
end

local dropall = function(player)
  print("Drop all called")
end

local dropx = function(player)
  print("Drop x called")
end

ITEM.Actions = {}
ITEM.Actions["Drop"] = {}
ITEM.Actions["Drop"]["Drop 1"] = drop1
ITEM.Actions["Drop"]["Drop all"] = dropall
ITEM.Actions["Drop"]["Drop X"] = dropx

GMS.RegisterResource(ITEM)