Goto https://www.stucuk.netGoto https://www.atlanticaonlinewiki.comGoto https://www.game-requirements.comGoto https://www.owsupport.com
It is currently Mon Jul 23, 2018 3:16 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: my own command book
PostPosted: Thu Dec 24, 2015 3:04 pm 
Offline
Soldier level 0
Soldier level 0

Joined: Thu Dec 24, 2015 2:48 pm
Posts: 1
ay lmao
im trying to make a book in minecraft similar to a redstone book i saw off youtube where it, once received from a command block command, i can open and click on a command i want done (ex: summon fully armored giant zombie that actually attacks instead of stand there like an op statue)

here is the code im working on. the main problem is that once i make the book the contents are just the code i wrote down, but i want that code to really be a command to spawn a basic beacon.


give @p written_book 1 0 {title:"notes",author:"wolverinehunter",pages:[

"{text:'Test/n/n',extra:[
{text:'* beacon/n',color:dark_aqua,clickEvent:
{action:run_command,value:'/setblock ~1 ~ ~ gold_block},
{action:run_command,value:'/setblock ~2 ~ ~ gold_block},
{action:run_command,value:'/setblock ~3 ~ ~ gold_block},
{action:run_command,value:'/setblock ~3 ~ ~ gold_block},
{action:run_command,value:'/setblock ~5 ~ ~ gold_block},
{action:run_command,value:'/setblock ~1 ~ ~1 gold_block},
{action:run_command,value:'/setblock ~2 ~ ~1 gold_block},
{action:run_command,value:'/setblock ~3 ~ ~1 gold_block},
{action:run_command,value:'/setblock ~4 ~ ~1 gold_block},
{action:run_command,value:'/setblock ~5 ~ ~1 gold_block},
{action:run_command,value:'/setblock ~1 ~ ~-1 gold_block},
{action:run_command,value:'/setblock ~2 ~ ~-1 gold_block},
{action:run_command,value:'/setblock ~3 ~ ~-1 gold_block},
{action:run_command,value:'/setblock ~4 ~ ~-1 gold_block},
{action:run_command,value:'/setblock ~5 ~ ~-1 gold_block},
{action:run_command,value:'/setblock ~2 ~1 ~ beacon'}}]}"
]}




i wish i knew a faster way of going about this lol. but as you can see all of this is supposed to happen the moment i click on the "beacon" text in the book. but so far all i get is a book with all this^ code slapped on it.
Attachment:
Screenshot (1).png
Screenshot (1).png [ 428.08 KiB | Viewed 1191 times ]

too much for it to handle?
unbalanced {["' ?
missing important piece?
anyone who can help with the syntax and learn me some knowledge straight from the fountain of smart i will greatly appreciate it!

source of idea: https://www.youtube.com/watch?v=9yW6IRtJisQ
sources code: http://bit.ly/1wBJuIk
its so irritating....


Top
 Profile  
 
 Post subject: Re: my own command book
PostPosted: Fri Dec 25, 2015 7:10 am 
Offline
OW Support Owner
OW Support Owner
User avatar

Joined: Wed Dec 28, 2005 11:13 pm
Posts: 5001
Location: UK, Scotland
You have missed out the closing ' . I don't know if the following will work (I have never tried making books in minecraft) but it should at least be more correct.

Code:
give @p written_book 1 0 {title:"notes",author:"wolverinehunter",pages:[

"{text:'Test/n/n',extra:[
{text:'* beacon/n',color:dark_aqua,clickEvent:
{action:run_command,value:'/setblock ~1 ~ ~ gold_block'},
{action:run_command,value:'/setblock ~2 ~ ~ gold_block'},
{action:run_command,value:'/setblock ~3 ~ ~ gold_block'},
{action:run_command,value:'/setblock ~3 ~ ~ gold_block'},
{action:run_command,value:'/setblock ~5 ~ ~ gold_block'},
{action:run_command,value:'/setblock ~1 ~ ~1 gold_block'},
{action:run_command,value:'/setblock ~2 ~ ~1 gold_block'},
{action:run_command,value:'/setblock ~3 ~ ~1 gold_block'},
{action:run_command,value:'/setblock ~4 ~ ~1 gold_block'},
{action:run_command,value:'/setblock ~5 ~ ~1 gold_block'},
{action:run_command,value:'/setblock ~1 ~ ~-1 gold_block'},
{action:run_command,value:'/setblock ~2 ~ ~-1 gold_block'},
{action:run_command,value:'/setblock ~3 ~ ~-1 gold_block'},
{action:run_command,value:'/setblock ~4 ~ ~-1 gold_block'},
{action:run_command,value:'/setblock ~5 ~ ~-1 gold_block'},
{action:run_command,value:'/setblock ~2 ~1 ~ beacon'}}]}"
]}

_________________
Image
Free Map Editor - Game Requirements - Stucuk.Net
-Stu


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group