GreenHell Modding
Search…
Giving items to a player
To give an item to a player you can use the AddItemToInventory method on the Player class.
1
Player.Get().AddItemToInventory("Meat_Cooked");
2
Player.Get().AddItemToInventory("Candy_bar_1");
3
Player.Get().AddItemToInventory("Mouse_Meat_Cooked");
4
Player.Get().AddItemToInventory("Bamboo_Spear");
Copied!
You can find all in-game items in the ItemID enum. In 1.5.2 there is more than 700 items!
Last modified 1yr ago
Copy link