Last active
August 18, 2016 05:07
-
-
Save syuchan1005/6e4cfa7484fe161c0acc41d67707150e to your computer and use it in GitHub Desktop.
ItemStackを使用したレシピを作ります。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/syuchan1005/ItemStackRecipe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.bukkit.plugin.java.JavaPlugin; | |
public class SamplePlugin extends JavaPlugin { | |
@Override | |
public void onEnable() { | |
CustomRecipe.init(this); | |
CustomRecipe.addRecipe(new CustomRecipe.Shaped(new ItemStack(Material.STONE), new String[]{ "SSS", "SSS", "SSS" } | |
, new CustomRecipe.ShapedMaterial(new ItemStack(Material.COBBLESTONE), 'S'))); // 丸石9個で焼石1個にする | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment