summaryrefslogtreecommitdiff
path: root/gamemode/itemsystem/items/melonseeds.lua
blob: 874ac4693e50a1a9850968b9c699f9c2d2ec92d2 (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 = "Melon 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)