Advertisement
cpmct32

How to make a machine in vanilla minecraft

Jul 6th, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. How to make a machine in minecraft:
  2.  
  3. Step 1
  4.  
  5. Get a spawn egg and name it however you want.
  6. execute @e[name=NAME,type=TYPE] ~ ~ ~ setblock ~ ~ ~ dropper 6 0 {CustomName:"MACHINE NAME"}
  7. execute @e[name=NAME,type=TYPE] ~ ~ ~ summon ArmorStand ~ ~-0.9 ~ {CustomName:"MACHINE NAME",Invisible:1b,NoGravity:1b,Marker:1b,Equipment:[{},{},{},{},{id:"minecraft:BLOCK"}]}
  8. kill @e[name=NAME,type=TYPE] or tp @e[name=NAME,type=TYPE] ~ ~-100 ~
  9.  
  10. Step 2
  11.  
  12. You need to add a new scoreboard.
  13. scoreboard objectives add MACHINE dummy
  14.  
  15. Step 3
  16. Set up the system.
  17. stats entity @e[name=NAME,type=TYPE] set SuccessCount @e[c=1,name=NAME,type=TYPE] MACHINE
  18. scoreboard players set @e[name=NAME,type=TYPE] MACHINE 0
  19. RUN THESE ON A SLOWER CLOCK!!!
  20.  
  21. Step 4
  22. Now you need to add reciepes to your machine.
  23. execute @e[name=NAME,type=TYPE] ~ ~ ~ testforblock ~ ~1 ~ dropper -1 {Items:[ITEMS]}
  24. execute @e[name=NAME,type=TYPE,score_MACHINE_min=1] ~ ~ ~ blockdata ~ ~1 ~ {Items:[ITEMS]}
  25.  
  26. And thats it!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement