Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

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

  • 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 :D

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.