Jump to content

Recommended Posts

Posted

Basically the whole of Minecraft is open to you.  What is your goal?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Well, basically know "everything" we have available to use. Let's say I want to make a block that has to check if other specific block is above it. (Or below, or close, and so on)

 

I'm almost sure there is some function to check for neighbors blocks. But instead of learning all that from Tutorials, where can I look at those... Or it's just by digging around the Minecraft code?

Posted

That's all vanilla.  When a block gets an update, it's given a world object and it's location. 

world.getBlock(x, y+1, z);//block above

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
  On 2/18/2015 at 10:07 PM, American2050 said:

I think I should have done/ask this time time ago.

 

Is there a place where I can get information about all the functions that we have available and how to implement them?

 

Thanks.

 

Yes there is! It is a relatively new site called www.google.com. This site can answer almost any question you put into it!

Posted

Unfortunately, as you've probably already discovered, the documentation for Forge is a bit patchy and of "highly variable" quality.

 

There are a number of tutorial sites around which help.  The Tutorials section on this board has some good ones.

 

You might also find this one useful :)

http://greyminecraftcoder.blogspot.com.au/p/list-of-topics.html

and the accompanying sample project

https://github.com/TheGreyGhost/MinecraftByExample

 

But most of the time it comes down to trial and error, reverse-engineering the vanilla code, and good debugging skills...

 

-TGG

 

Posted
  On 2/19/2015 at 2:56 AM, TheGreyGhost said:

Unfortunately, as you've probably already discovered, the documentation for Forge is a bit patchy and of "highly variable" quality.

 

Because it's a right pain in the arse to update them.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
  On 2/19/2015 at 2:48 AM, charsmud said:

There are javadocs available for Forge at files.minecraftforge.net, that should give you enough information.

 

Yes thanks Charsmud, I found the Java docs and it helps a lot, at least to know everything there is available to use (Or most I guess)

 

  Quote

Unfortunately, as you've probably already discovered, the documentation for Forge is a bit patchy and of "highly variable" quality.

 

There are a number of tutorial sites around which help.  The Tutorials section on this board has some good ones.

 

You might also find this one useful :)

http://greyminecraftcoder.blogspot.com.au/p/list-of-topics.html

and the accompanying sample project

https://github.com/TheGreyGhost/MinecraftByExample

 

But most of the time it comes down to trial and error, reverse-engineering the vanilla code, and good debugging skills...

 

-TGG

 

Thanks TheGreyGhost. Yes, I saw some of the tutorials are really helpful, and yes trial and error or finding a tutorial that explain exactly what we are looking for are the best alternatives apparently.

 

I have done easy things mostly when doing a mod, but I'm trying to learn more to go forward more advanced stuff.

 

Thanks for all the answers ;)

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Start by following the docs to get a workspace setup: https://docs.minecraftforge.net/en/latest/gettingstarted/ Then poke around some of the tutorials, https://www.mcjty.eu/docs/1.20/ used to be the goto, but not sure if there are any updates for regular forge or not, but if you've brushed up on Java, it will be enough to get you started. Poke around the Minecraft and Forge sources to see how things are done. Read the FAQ for information on how to post code/logs when you run into issues. Share as much info on issues you have as possible. Use github to host projects, chances of someone helping are higher when they can actually see all your code and/or build it themselves. And finally, keep it on the forums, don't direct message people with questions, most people do not provide personal support like that. Also keep in mind forums posts are not always immediately answered, if you're looking for a quicker response, you can always try the Minecraft Forge discord server.
    • Hello, I have a Forge Minecraft sever (I host it at g-portal.com) which has always worked fine and I had no problems, but today it doesn't wanna work anymore. Today I started the server and the status said online, but after a few seconds it said this: "Start failed". And then out of nowhere it restarted itself and the same thing happened again and again and now it's in an infinite loop where it just keeps failing and then restarts. Here's the download link for the server logs: https://www.mediafire.com/file/sq30dgoonjevib1/2025-07-06-1.log/file Does anyone know how to fix this? If yes I would really appreciate help. Best wishes, Gabs1107
    • I'm experiencing a critical issue on a dedicated Arch Linux server running the latest Forge for Minecraft 1.20.1. When a player exits a Nether portal (not enters, and not via /tp) or teleports into the End via portal, the server completely freezes for 1–10 minutes. During this time, all commands are unresponsive, and the game world essentially locks up. This is with watchdog disabled. Environment: OS: Arch Linux (latest packages) Java: OpenJDK 17 (up to date) Forge Version: Latest 1.20.1 (tested multiple versions from the past ~3 months) Mods: None (issue occurs on a clean install) Server Type: Proxmox VM with: 4 virtual cores 64 GB RAM (63 GB allocated via -Xmx and -Xms flags) Observed Behavior: Observed Behavior: The server freezes for 1–10 minutes when: Exiting a Nether portal (entering does not trigger the issue) Entering or exiting the End using a portal Teleporting using commands (e.g., /tp) works only for the Nether; teleporting to the End via command also causes a freeze The issue occurs anywhere in the world, not tied to specific coordinates or builds During the freeze: The server becomes completely unresponsive to all commands and player actions No crash reports, no errors, and no warnings are logged CPU usage remains under 50%, and RAM usage stays around 6–14 GB After 1–10 minutes, the server recovers automatically and resumes normal operation
  • Topics

×
×
  • Create New...

Important Information

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