Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

More functionality for adventure mode control Blocks

amcb suggestion

  • Please log in to reply
4 replies to this topic

#1

deathgleaner
  • Location: Seattle
  • Minecraft: deathgleaner

Posted 09 August 2012 - 10:15 PM

As of snapshot 12w32a, Adventure mode control blocks (herein referred to as AMCBs), can only handle one  server command per block. If we are to implement a feature that would allow a player to indirectly issue server commands, then I think we should expand the functionality of the AMCB. Let me explain.

My overarching suggestion would be to allow each AMCB to run multiple commands. This can be achieved by using a command-line style GUI for the block. For example, An op could enter the following lines of server commands into the GUI:

/gamemode @p 1
/xp give @p 10


Then the block would issue 2 commands.

-------------------------------more advanced stuff-------------------------------

If multi-command functionality could be implemented then I don't see why not we could implement a basic programming language into the AMCBs. The programming language would include most of the basic constructs of other programming languages, including but not limited to :

*Variable declaration and instantiation: e.g
int count = 3
*decision loops: IF, ELSE, ELSEIF, etc.
*repeat loops: WHILE, FOR
*output function: PRINT should push a line of text to the player.

To support these extra constructs additional server variables should be included, such as %w for weather or %gm for player's gamemode, etc.

An example syntax with this expanded functionality:

IF ( @p == "Notch" ) 
/give @p 57 64 
ELSE 
PRINT "You are not notch!"
/kill @p
END

We do not use brackets, instead, the END statement is used.

Of course, server ops with no knowledge of programming whatsoever could still use the AMCB GUI. The additional functionality would just be there for those who wish to use it.

I believe that this added functionality will bring a new depth to the game. Please vote for this idea or click the up arrow in the bottom right corner if you support!
Posted Image

Register or log in to remove.

#2

deathgleaner
  • Location: Seattle
  • Minecraft: deathgleaner

Posted 09 August 2012 - 10:44 PM

Bump.
Posted Image

#3

Kageon
    Kageon

    Redstone Miner

  • Members
  • 559 posts
  • Location: The land of 1000 lakes, And ES, Dont ever forget ES.
  • Minecraft: TheMizga
  • Xbox:Nope.

Posted 09 August 2012 - 10:46 PM

Spoiler:
Yes, this is exactly what Minecraft needs.
If you want to discuss this topic to an end, reply me.
Dont use #Kageon or @Kageon, this is not twitter.

#4

--TheBeast--

Posted 14 August 2012 - 05:00 PM

Minecraft doesn't NEED a programming language. What do you think redstone is for? I had a similar idea, also using variables, but much more simplified. Loops? Use repeaters. All the complicated shizzle in programming is accomplished with redstone in some degree, almost always to a satisfactory level. Check out my post, I suggest something more streamlined that doesn't need a programming language, just a simple understanding of what a variable is.
http://www.minecraft...k#entry17319542
"This is Blasphemy! This is madness!!"
"Madness... THIS IS MINECRAFT!!!!!"
"AAAAAAAUUUUUUUUUUUUUUUUUUGGGGGGGGHHHHHHHHHHHHHHH......
    Posted Image     Posted Image     Posted Image     Posted Image     Posted Image

#5

peterdetmig
  • Location: In front of the computer
  • Minecraft: Peterdetmig

Posted 14 August 2012 - 07:16 PM

Bump. great idea! This would bless adventure maps.
Posted Image