Posted June 25, 201510 yr Hi I'm making a mod for protecting area like the Bukkit plugin "AntiGrief". User can "claim" area and nothing else can do some bad things in it. The mod is almost finished, but i have 2 little problemes 1) For the fluid: Il "Bukkit" Their is an Event call "BlockFromToEvent" That occured when a fluid "spread" with the source location and the destination, and the event is cancelable; Does it exist an equivalent in "Forge" or should i make a core mod ? 2) I also wanna stop player "jumping" on crops and making it drop; i touck a look in "BlockFarmland" code, and i saw the method "onFallenUpon"; Is their an (cancelable) event whish call this ? or do i realy need to make a core mod to redefine "BlockFarmland" class ? PS: If you didnt noticed, its a server side only mod Thanks a lot, MasterCat
June 26, 201510 yr If you find a graceful way to do those two things, please share. I ended up just making my protection go to sky and a little wide to avoid the liquids. Never tried with the crops. Long time Bukkit & Forge Programmer Happy to try and help
June 26, 201510 yr Author Thanks for the quick answers. I got a solution, but for that, i need to make a core mod and redefine "BlockFluid" to add the event proccess in it. And same for the crops with "BlockFarmland". I hoped it was a "easier" solution
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.