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.
Player.Get().AddItemToInventory("Meat_Cooked");
Player.Get().AddItemToInventory("Candy_bar_1");
Player.Get().AddItemToInventory("Mouse_Meat_Cooked");
Player.Get().AddItemToInventory("Bamboo_Spear");
You can find all in-game items in the ItemID enum. In 1.5.2 there is more than 700 items!
Copy link