How do I add a function to a block

Started by ZommerYoutube on

Topic category: Advanced modding

Active 8 years ago
Joined Dec 2016
Points:
709

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
How do I add a function to a block

I want to now if it´s possible to add a function to a block... for example I have an item that is dirty so I want to clean it in a machine called "Cleaner" and I need that this block has an interface like the furnance. So I put the dirty item with coal and the Cleaner cleans it.

I dont now if I need to programate this or if there is an option to do this in Mcreator

Active 6 years ago
Joined Jul 2015
Points:
827

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 105
You need to create a GUI and
Mon, 12/26/2016 - 22:19

You need to create a GUI and hook it up to your block.  It depends what version you have because some of the versions have a messed up/buggy GUI
 

Active 8 years ago
Joined Dec 2016
Points:
709

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
This Mod Is For Minecraft 1.10.2
Thu, 12/29/2016 - 06:40

The mod is going to be for Minecraft 1.10.2....do you think I'll have problems?

I have other question....How do I create a gui in Mcreator and if a I can personalize the shapes like Industrial Craft that has different shapes for each machine.

Active 8 years ago
Joined Dec 2016
Points:
709

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
I already know how to create
Thu, 12/29/2016 - 15:53

I already know how to create a GUI but I dont know how can I put the function of "Clean" that I want...

Active 5 years ago
Joined Apr 2020
Points:
630

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Just make the block so that…
Wed, 04/15/2020 - 20:37

Just make the block so that when you right click and gui pops up then hook the function to the gui

Active 1 year ago
Joined Jun 2015
Points:
1277

User statistics:

  • Modifications: 10
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 1
  • Comments: 543
The only recent version of…
Wed, 04/15/2020 - 21:35

The only recent version of MCreator that has clean and working GUI is the 2020.2.
This version is not compatible with Minecraft 1.10.2 (oldest compatible version is 1.12.2) so sorry but you need to move to 1.12.2 if you want a compatible GUI. I personnaly don't provide support for oldest versions of MCreator...

Active 1 year ago
Joined Dec 2023
Points:
128

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Make two versions of the…
Sat, 12/23/2023 - 17:54

Make two versions of the item: a clean and a dirty one. Then make a crafting recipe for your new gui that takes in the dirty item and outputs a clean one