Custom crafting table or furnace? Help

Started by Kane on Sun, 04/03/2016 - 13:28

Topic category: Help with modding

Last seen on 12:58, 23. Sep 2019
Joined Aug 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Custom crafting table or furnace? Help
Fri, 07/14/2017 - 10:20 (edited)

I tried a lot of "combinations" in GUI to make a custom furnace or a crafting table, but I always get some error even with basic commands (for example, I tried to create something with slots, where I "put" a block in an input slot and I get a different block in the output slot cosuming the block in the 1st slot, but nothing works)

So I would like to know if it's possible to create a kind of crafting table or a furnace that have MORE than 1 recipe and if yes, tell me the passages please

Edited by Klemen on Fri, 07/14/2017 - 10:20
Last seen on 23:39, 23. Apr 2017
Joined Nov 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Question do you want a normal
Sun, 04/03/2016 - 19:40

Question do you want a normal grid, or are you ok with it being a different method of crafting?

-With Regards SpidroTechnology™

Last seen on 16:15, 6. May 2020
Joined Oct 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
First of all, open this image
Sun, 04/03/2016 - 21:24

First of all, open this image:  http://imgur.com/zNXfUkl

Then, with the image open, read this text:

  1. Make a -with slots- GUI and make an Inventory, in this case TEST
  2. Make 8 input slots without any Event and one Output
  3. The 9th slot (number 10), put it an event: 

''Stack Event''  Condition=  contains[TEST,00] == Items.milk_bucket

Previous event contains:

''Stack Event''  Condition= contains[TEST,01] == Items.milk_bucket

Previous event contains:

''Stack Event'' Condition= contains[TEST,02] == Items.milk_bucket

Previous event contains:

''Stack Event'' Condition= contains[TEST,03] == Items.sugar

Previous event contains:

''Stack Event'' Condition=  contains[TEST,04] == Items.egg

Previous event contains:

''Stack Event'' Condition= contains[TEST,05] == Items.sugar

Previous event contains:

''Stack Event'' Condition= contains[TEST, 06] == Items.wheat

Previous event contains:

''Stack Event'' Condition= contains[TEST, 07] == Items.wheat

Previous event contains:

''Stack Event'' Condition= contains[TEST, 08] == Items.wheat

Previous event contains:

''Stack Event'' Condition= contains[TEST, 10] == Items.wheat   (Slot number 10 because the number 09 is the Output slot)

Previous event contains:

  • ''Place Item in GUI slot'' Condition= Always, Slot ID= 09 (Output slot), Inventory= TEST, Item to place in= Cake, Amount= 1
  • ''Remove Item in GUI slot'' Condition= Always, Slot ID= 00 Inventory= TEST, Amount= 1
  • ''Remove Item in GUI slot'' Condition= Always, Slot ID= 01 Inventory= TEST, Amount= 1

  • ''Remove Item in GUI slot'' Condition= Always, Slot ID= 02 Inventory= TEST, Amount= 1

  • ''Remove Item in GUI slot'' Condition= Always, Slot ID= 03 Inventory= TEST, Amount= 1

  • ''Remove Item in GUI slot'' Condition= Always, Slot ID= 04 Inventory= TEST, Amount= 1

  • ''Remove Item in GUI slot'' Condition= Always, Slot ID= 05 Inventory= TEST, Amount= 1

  • ''Remove Item in GUI slot'' Condition= Always, Slot ID= 06 Inventory= TEST, Amount= 1

  • ''Remove Item in GUI slot'' Condition= Always, Slot ID= 07 Inventory= TEST, Amount= 1

  • ''Remove Item in GUI slot'' Condition= Always, Slot ID= 08 Inventory= TEST, Amount= 1

  • ''Remove Item in GUI slot'' Condition= Always, Slot ID= 10 Inventory= TEST, Amount= 1

 

 

Place this slot, number 10, and test it. The problem is that every recipe you want to add, it must be at the same moment, because you cannot edit any slot, so I recommend you to add more than 1 recipe GUI. I hope that this will help you, i know is very long, but it works, trust me.

 

PD: In the image, the left Milk buket slot is the 00 and the right wheat slot is the number 10, the  cake slot is the output slot (number 09).  This is an example, but you can do this with a custom recipe, custom items, blocks, guns.. etc.

Last seen on 07:05, 2. May 2017
Joined Apr 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Hi
Sun, 04/03/2016 - 21:38

Hi

I am going to try this, thanks

Is it the same principle to make a furnase

I am tryig to make a crusher, so an ore goes in two dust comes out and powered by coal. But i dont want it to be instant

Thanks

 

Last seen on 12:58, 23. Sep 2019
Joined Aug 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
RE:First of all, open this image
Sun, 04/03/2016 - 21:43

@#2 thx a lot

I did exactly these passages but something gone wrong, and now I can guess what

For the event condition, the "container", I have to edit the string deleting "inventoryName" and "slotID" so?

Last seen on 12:58, 23. Sep 2019
Joined Aug 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
RE:First of all, open this image
Sun, 04/03/2016 - 22:20

@#2 Ok, no coding error, the gui opens well, but it does not work D:

I created something easy: 2 inputs only

first slot no events (00)

second: output (01)

third (02): 

  • 1 stack event, conditions: contains[TEST, 00]==blocks.diamond.block
  • 2 stack event, conditions: contains[TEST, 02]==blocks.diamond.block
  • place item in gui slot, conditions: always, slotID=01, inventory=TEST, Item to place in= nether star, amount=1
  • remove  item in gui slot, conditions: always, slotID=00, inventory=TEST, amount=1
  • remove  item in gui slot, conditions: always, slotID=02, inventory=TEST, amount=1

Don't know what I'm doing wrong :/

Last seen on 12:58, 23. Sep 2019
Joined Aug 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
RE:First of all, open this image
Sun, 04/03/2016 - 22:51

@#2 nevermind, I found what I did wrong, I guess I'm a bit retarded at this late hour :P

Thx really a lot

Last seen on 23:39, 23. Apr 2017
Joined Nov 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
RE:Hi
Sun, 04/03/2016 - 23:32

I would like to point out that you can add new recipes to it through the use of the source code. As long as you have at least two recipes its really easy to do.

-With Regards SpidroTechnology™@#3@#2

Last seen on 07:05, 2. May 2017
Joined Apr 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
The source code from miecraft
Mon, 04/04/2016 - 00:11

The source code from miecraft?

 

Last seen on 07:05, 2. May 2017
Joined Apr 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
I am just starting so i am a
Mon, 04/04/2016 - 00:14

I am just starting so i am a bit of a noob

Last seen on 23:39, 23. Apr 2017
Joined Nov 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
RE:I am just starting so i am a
Mon, 04/04/2016 - 01:52

The source code is what shows up when you click on the little bracket icon on the left @#4 @#5

Last seen on 12:58, 23. Sep 2019
Joined Aug 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
RE:RE:Hi
Mon, 04/04/2016 - 10:02

@#3.1 Right! I fogot about it, it should be really easy to do since I should have to change only the item name in the slot (string of the code) I want right?

Last seen on 16:15, 6. May 2020
Joined Oct 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
RE:RE:First of all, open this image
Mon, 04/04/2016 - 16:19

@#2.3 @#2.3 You're welcome!! For any other thing, tell me :D