![]() There is no direct way to sense who activated it, so it gives the item based on which player is closest to the block at the time. ![]() If it finds it, the second command block erases the contents (only possible on 1.8, you have to use a hopper minecart below it if you want it in 1.7) and the 3rd command block gives the player the item. The first command block (on a loop circuit) constantly checks to see if there's a dispenser in the right location with the right contents. With those limitations in mind, you need a string of a few command blocks for every new recipe. People usually use dispensers or droppers since they are 3x3. There's a few catches: it has to be something other than a crafting table since you can't access the player's crafting grid (both the crafting table and the ender chest just access something that's actually within the player, so the block has no inventory to access with commands). then next to all of the command blocks place redstone comparators facing outwards from the command block, then a command block that says /execute (co-ords of other command block that activated the comparator to activate this block) /clone (co-ords of dispenser with command block twice) ~ ~ ~ĮDIT : Oops, thats for singleplayer, well, for singleplayer, there! on another side /execute ~ ~ ~ /testforblock (co-ords of crafting recipie) ~ ~ ~-1. on another side /execute ~ ~ ~ /testforblock (co-ords of crafting recipie) ~ ~ ~1. on another side /execute ~ ~ ~ /testforblock (co-ords of crafting recipie) ~-1 ~ ~. ![]() Place a despenser wherever you want, that will be your command block crafting station, then place a dispenser with the items and way you want to craft the item, then a dispenser with the item, then, for the command block stuff (which needs to be in spawn chunks), do a command block clock (place a command block on the bottom with /setblock ~ ~1 ~ minecraft:air and 2 blocks above place a command block with /setblock ~ ~-1 ~ minecraft:redstone_block, then place a redstone block between.) then to one side of the redstone block place a command block saying /execute ~ ~ ~ /testforblock (co-ords of crafting recipie) ~1 ~ ~. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |