mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Spawning blocks/items using its name
This commit is contained in:
parent
cdb05f0695
commit
65280d85d1
4 changed files with 18 additions and 8 deletions
|
|
@ -30,6 +30,8 @@ require_once("classes/material/IDs.php");
|
|||
class Item{
|
||||
public static $class = array(
|
||||
SUGARCANE => "SugarcaneItem",
|
||||
WHEAT_SEEDS => "WheatSeedsItem",
|
||||
MELON_SEEDS => "MelonSeedsItem",
|
||||
);
|
||||
protected $block;
|
||||
protected $id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue