Jump to content

program Blocks like Furnace or Crafting table


MicDah2000

Recommended Posts

Hi,

I am working on my own forge mod and i don't know how to make a Block with 'funktions'(I didn't know how to say it better because my english is not so good). I mean Blocks Like the crafting table or the Enchantment table.

I wantet to make a Block with a 6x6 crafting field

It would be really nice if you can help me :D

 

Ps.: sry for my bad english i'm only 14 years old and i'm from germany

Link to comment
Share on other sites

You can look at the code for the BlockWorkbench (net.minecraft.block), and InventoryWorkbench (net.minecraft.inventory). You can learn how those work and learn from that code.

if (user.hasKnowledgeOfJava) {

    if (user.question.hasCode) {

        return interpetHelpfulResponse(user.getQuestion());

    } else {

        return "Could you post your code please?";

    }

} else {

    return "Learn some freaking Java!";

}

Link to comment
Share on other sites

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



×
×
  • Create New...

Important Information

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