DoYouEvenTriangle's Avatar
Level 19 Journeyman Engineer
14

Forum Posts

1 - 11 of 11

    DoYouEvenTriangle
    11/06/2015 9:22 pm
    Level 19 : Journeyman Engineer
    DoYouEvenTriangle's Avatar
    Well all hold different values. Blocks, Items, and Entities. Giving a item with data will keep it's data tags, but Once the block is placed by a player it's data gets updated originally removing any data unless it has extra data which is only possible via the pick block.
    1
    DoYouEvenTriangle
    11/06/2015 12:39 pm
    Level 19 : Journeyman Engineer
    DoYouEvenTriangle's Avatar
    Sorry giving blocks with blockdata doesn't work if you place it. but maybe try something where it places a command block? Sorry not sure what you're trying to do.

    This will create a command block then if you power it, it turns into a spawner.
    /setblock ~ ~2 ~ minecraft:command_block 1 0 {Command:/setblock ~ ~ ~ minecraft:mob_spawner 0 replace {SpawnData:{id:"ArmorStand",ShowArms:1,Small:1,Glowing:1b,HandItems:[{id:iron_sword,Count:1},{}],Pose:{RightArm:[-50f,90f,0f]}}}}
    1
    DoYouEvenTriangle
    11/06/2015 12:23 pm
    Level 19 : Journeyman Engineer
    DoYouEvenTriangle's Avatar
    Yea forsure
    /scoreboard players add @e[type=Item] dropped 1 {Item:{id:"minecraft:crafting_table"},OnGround:1b}

    /execute @e[score_dropped_min=1] ~ ~ ~ /setblock ~ ~ ~ dispenser 1

    /execute @e[score_dropped_min=1] ~ ~ ~ /blockdata ~ ~ ~ {CustomName:hi}

    /kill @e[score_dropped_min=1]
    1
    DoYouEvenTriangle
    11/06/2015 12:03 am
    Level 19 : Journeyman Engineer
    DoYouEvenTriangle's Avatar
    1] /scoreboard objectives add breaksea stat.mineBlock.minecraft.sea_lantern

    2] /execute @p ~ ~-1 ~ detect ~ ~ ~ minecraft:ice 0 /say hi

    1
    DoYouEvenTriangle
    11/05/2015 11:56 pm
    Level 19 : Journeyman Engineer
    DoYouEvenTriangle's Avatar
    add a scoreboard dummy,
    scoreboard objectives add dropped dummy

    /scoreboard players add @e[type=Item] dropped 1 {Item:{id:"minecraft:crafting_table"},OnGround:1b}

    /execute @e[score_dropped_min=1] ~ ~ ~ /setblock ~ ~ ~ bedrock

    /kill @e[score_dropped_min=1]
    1
    DoYouEvenTriangle
    11/05/2015 11:44 pm
    Level 19 : Journeyman Engineer
    DoYouEvenTriangle's Avatar
    EnderCat17so i am trying make a custom crafting recipe but i was wondering if there was anyway to look if there is a named chest (or in my case a dispenser) with items in it?

    thanks ~ EnderCat


    Yea in this case I'd use a invisible Armor stand to check for items. I'm going to guess you already have the way you add your custom crafting machine into the world, also I'm sure you want to check for specific items instead of any item.

    So using this code
    /summon ArmorStand ~ ~ ~ {CustomName:customcraft,Invisible:1,Marker:1,Invulnerable:1,NoGravity:1}

    /execute @e[name=customcraft] ~ ~-1 ~ detect ~ ~ ~ /testforblock ~ ~ ~ dispenser -1 {Items:[{id:minecraft:stick,Damage:0s,Slot:0b,Count:1b}]}
    the best way to get this code is by placing a command block over the dispenser with this code /blockdata ~ ~-1 ~ {} then copy all the code place in the testforblock data spot
    1
    DoYouEvenTriangle
    11/05/2015 11:14 pm
    Level 19 : Journeyman Engineer
    DoYouEvenTriangle's Avatar
    Sorry, I don't think it's possible to give a block that holds block data. What would be the purpose of giving the custom spawner? maybe I can help.

    but if you'r looking for a custom spawner here's one.
    /setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {SpawnData:{id:"ArmorStand",ShowArms:1,Small:1,Glowing:1b,HandItems:[{id:iron_sword,Count:1},{}],Pose:{RightArm:[-50f,90f,0f]}}}
    1
    DoYouEvenTriangle
    11/05/2015 10:59 pm
    Level 19 : Journeyman Engineer
    DoYouEvenTriangle's Avatar
    Yea no problem, but if you press tab on any command it should help for example.
    /replaceitem tab tab tab tab

    the list of slots would be.. feet, legs, chest, head
    1
    DoYouEvenTriangle
    11/05/2015 10:55 pm
    Level 19 : Journeyman Engineer
    DoYouEvenTriangle's Avatar
    Sorry this post is a few days old thought I'd throw in my help first, but anyways This could be possible with 2 command blocks and a armorstand. more help below..

    I'd start by setting a custom armor stand at each light source (for example this code should do) /summon ArmorStand ~ ~ ~ {CustomName:light,Invisible:1,Marker:1,Invulnerable:1,NoGravity:1}

    Now Using Repeating command block
    /execute @e[name=light,type=ArmorStand] ~ ~ ~ /effect @e[type=!Player,r=8] slowness 1 255 true

    Then Using a chain command block with conditional
    /execute @e[name=light,type=ArmorStand] ~ ~ ~ /execute @a[rm=8,r=15] ~ ~ ~ /effect @e[type=!Player,r=9] slowness 0 0 true

    With this it shouldn't fail in certain rooms but if you get at certain angles it might be able to enter a bit more into the light than other sides.
    1
    DoYouEvenTriangle
    11/05/2015 10:08 pm
    Level 19 : Journeyman Engineer
    DoYouEvenTriangle's Avatar
    Repeating command block /replaceitem entity @a[score_armor_min=1] slot.armor.feet air
    1

1 - 11 of 11

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome