Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.brandoncow.mod.event;
- import net.brandoncow.mod.BrandonCoW;
- import net.brandoncow.mod.block.SaplingEbony;
- import net.minecraftforge.event.ForgeSubscribe;
- import net.minecraftforge.event.entity.player.BonemealEvent;
- public class Ebony_Bonemeal_Event {
- @ForgeSubscribe
- public void usedBonemeal(BonemealEvent event){
- if(event.ID == BrandonCoW.ebonySapling.blockID){
- if(!event.world.isRemote){
- ((SaplingEbony)BrandonCoW.ebonySapling).growTree(event.world, event.X, event.Y, event.Z, event.world.rand);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment