Add Block event using command tokens

4 posts / 0 new
Last post
homchom's picture
Offline
Last seen: 2 weeks 3 days ago
Joined: 01/31/2015 - 16:22
Gems: 0
Add Block event using command tokens

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?



Offline
Last seen: 2 years 5 months ago
Joined: 03/26/2015 - 14:43
Gems: 0
You can do it:

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.

homchom's picture
Offline
Last seen: 2 weeks 3 days ago
Joined: 01/31/2015 - 16:22
Gems: 0
RE:You can do it:

@iDutch thank you so muucchhh!!!
+1

homchom

homchom's picture
Offline
Last seen: 2 weeks 3 days ago
Joined: 01/31/2015 - 16:22
Gems: 0
RE:RE:You can do it:

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

homchom