Add Block event using command tokens

Started by homchom on Sun, 03/29/2015 - 21:49
Last seen on 18:50, 16. Jun 2018
Joined Jan 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Add Block event using command tokens
Sun, 03/29/2015 - 21:49

Hi. I am making a minigame for Minecraft 1.6.4 and I am using MCreator to make a simple mod that adds /setblock to minecraft 1.6.4. I made a new command that had 4 paramaters, and made it add a block at the coords of the first 3 paramaters. I want to make the 4th paramater what block it is, but the MCreator interface makes you pick a specific block. Is there any way I could get this to work?

Last seen on 20:22, 26. Apr 2015
Joined Mar 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
You can do it:
Mon, 03/30/2015 - 13:44

You can do it:

Set a Block number variable:

VARIABLE NUMBERS - - - - - - - - - - BLOCK

1. ...................................................... Stone
2.......................................................Cobblestone
3.......................................................Wood
4.....................................................Glas
ETC

HOW?

When you say the command, you would say that: /setblock X Y Z NUMBER

So, put in the event 'when you say the command'

Put a block in X,Y,Z
IF variable is 1: Stone
IF variable is 2: Cobble

Etc.

Last seen on 18:50, 16. Jun 2018
Joined Jan 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:You can do it:
Tue, 03/31/2015 - 02:29

@#1 thank you so muucchhh!!!
+1

Last seen on 18:50, 16. Jun 2018
Joined Jan 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:RE:You can do it:
Tue, 03/31/2015 - 02:31

@#1.1 actually, no wait- that wouldn't work. My point is the interface doesn't let you add conditions for the block. It just makes you choose one in a GUI. Thanks for trying to help, though.