Furnaces and Burning items

This commit is contained in:
Shoghi Cervantes
2013-05-25 19:06:31 +02:00
parent 221da1685e
commit f224c26084
10 changed files with 253 additions and 16 deletions

52
src/recipes/FuelData.php Normal file
View File

@ -0,0 +1,52 @@
<?php
/*
-
/ \
/ \
/ PocketMine \
/ MP \
|\ @shoghicp /|
|. \ / .|
| .. \ / .. |
| .. | .. |
| .. | .. |
\ | /
\ | /
\ | /
\ | /
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
*/
class FuelData{
public static $duration = array(
COAL => 80,
TRUNK => 15,
WOODEN_PLANKS => 15,
SAPLING => 5,
WOODEN_AXE => 10,
WOODEN_PICKAXE => 10,
WOODEN_SWORD => 10,
WOODEN_SHOVEL => 10,
WOODEN_HOE => 10,
STICK => 5,
FENCE => 15,
FENCE_GATE => 15,
WOODEN_STAIRS => 15,
TRAPDOOR => 15,
WORKBENCH => 15,
BOOKSHELF => 15,
CHEST => 15,
LAVA_BUCKET => 1000,
);
}

View File

@ -0,0 +1,46 @@
<?php
/*
-
/ \
/ \
/ PocketMine \
/ MP \
|\ @shoghicp /|
|. \ / .|
| .. \ / .. |
| .. | .. |
| .. | .. |
\ | /
\ | /
\ | /
\ | /
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
*/
class SmeltingData{
public static $product = array(
COBBLESTONE => array(STONE, 0),
SAND => array(GLASS, 0),
TRUNK => array(COAL, 1), //Charcoal
GOLD_ORE => array(GOLD_INGOT, 0),
IRON_ORE => array(IRON_INGOT, 0),
NETHERRACK => array(NETHER_BRICK, 0),
RAW_PORKCHOP => array(COOKED_PORKCHOP, 0),
CLAY => array(BRICK, 0),
RAW_FISH => array(COOKED_FISH, 0),
CACTUS => array(DYE, 2),
RED_MUSHROOM => array(DYE, 1),
RAW_BEEF => array(STEAK, 0),
RAW_CHICKEN => array(COOKED_CHICKEN, 0),
);
}