Dismiss Notice
Wynncraft, the Minecraft MMORPG. Play it now on your Minecraft client at (IP): play.wynncraft.com. No mods required! Click here for more info...

C4 In Vanilla Minecraft

Discussion in 'Minecraft' started by Nepeta Leijon, Sep 16, 2015.

Thread Status:
Not open for further replies.
  1. Nepeta Leijon

    Nepeta Leijon Rogue of Heart ♌ Leittarius CHAMPION

    Messages:
    3,917
    Likes Received:
    17,972
    Trophy Points:
    217
    Guild:
    Minecraft:
    I had a few ideas of how to make "C4" in Minecraft using command blocks. I know that other people with "One Command Block" Machines have done this, but I wanted to make my own.

    The Items I used were: A Stone Button (Detonator, as C4 is activated usually by a button) which activates the C4, A piece of Quartz (C4, as the texture and colour sorta looks like C4) which places the C4 and Glowstone Dust (Defuse, because...I don't know) which removes all C4.

    The C4 is a little smoking TNT block, cute, right? I did this by replacing an Armour Stand's head slot with a TNT block and teleported it -1.4 blocks.
    2015-09-16_16.30.08.png

    By switching the Detonator into your left hand (Default Key F), you "Activate" the C4, which will cause an explosion a little like a Minecart with TNT. The explosion of the C4 is the same as TNT, but they all explode at once (Minecarts with TNT explode at the same time, but only if the explosion of one would hit the other. All C4 explodes at the same time even if one is 50 blocks from another).
    2015-09-16_16.32.20.png
    2015-09-16_16.32.26.png The Defuse was made when the C4 was still in Beta, I would end up with armour stands that would explode near to the command blocks that code them, so I decided to have a quick "Kill Armour Stands" command ready. When you switch the Defuse into your left hand, you'll hear a slightly higher-pitch "Villager Unfect" sound to indicate that the C4 has gone.

    "Oh no! If that C4 blows up, all of the WynnCraft Forum's Threads will be deleted!"
    2015-09-16_16.34.36.png
    "Phew! Lucky I had this defuse on me!"
    2015-09-16_16.34.50.png
    "FUUUUUUUUUUUUUUU-"
    2015-09-16_17.04.59.png
    I'm not the greatest at tutorials, and I can't figure out those "One Command Block" machines, but here are the command blocks and code that goes with them, and instructions on how to wire them.

    Important Note: Use the command "/setworldspawn" in the area with your command blocks to stop them from unloading. It is also advised to encase your command blocks in bedrock, to prevent damage to them.


    Detenator:
    /testfor @p {Inventory:[{Slot:-106b,id:"minecraft:stone_button",Count:1b}]}
    Repeat,Active
    Comparator to:
    /execute @e[type=ArmorStand] ~ ~ ~ /summon PrimedTnt
    Impulse
    Comparator & Repeater to:
    kill @e[type=ArmorStand]
    Impulse

    Defuse:
    /testfor @p {Inventory:[{Slot:-106b,id:"minecraft:glowstone_dust",Count:1b}]}
    Repeat,Active
    Comparator to:
    execute @p ~ ~ ~ /playsound mob.zombie.unfect @p~ ~ ~ 1 1.2 1
    Impulse
    Connected to:
    kill @e[type=ArmorStand]
    Chain,Active,Condition

    If you do not want Defuse to defuse all C4, then you can add r=2 to defuse only the C4 close to you (kill @e[type=ArmorStand,r=2])

    C4:
    /testfor @p {Inventory:[{Slot:-106b,id:"minecraft:quartz",Count:1b}]}
    Repeat,Active
    Comparator to:
    /execute @p ~ ~ ~ /summon Silverfish ~ ~ ~ {CustomName:C4,Silent:1,NoAI:1,Health:1.0}
    Impulse

    C4 Create:
    testfor @e[type=Silverfish,name=C4]
    Repeat,Active
    Comparator to:
    execute @e[type=Silverfish,name=C4] ~ ~ ~ /summon ArmorStand ~ ~-1.4 ~ {NoBasePlate:1,NoGravity:1,Invisible:1}
    Impulse
    Comparator and Repeater to:
    kill @e[type=Silverfish,name=C4]
    Repeat

    C4 Cosmetic:
    testfor @e[type=ArmorStand]
    Repeat,Active
    Comparator to:
    /replaceitem entity @e[type=ArmorStand] slot.armor.head tnt
    Repeat
    Comparator to:
    execute @e[type=ArmorStand] ~ ~ ~ /particle smoke ~ ~2 ~ 0 0 0 0 10
    Repeat

    You may change the particles to another particle type, and the block to a different block, to give your C4 a unique look, (Replace the blue: /replaceitem entity @e[type=ArmorStand] slot.armor.head <BlockName> , execute @e[type=ArmorStand] ~ ~ ~ /particle <ParticleName> ~ ~2 ~ 0 0 0 0 10) such as: emerald_block and happyVillager to make an Emerald Block with Emerald Sparkles for your C4.

    Fun Fact: You can spam the "Switch to Off Hand" key and spawn a load of C4, without risk of the command blocks breaking.
    By changing two small pieces of code, you can create fully customised C4! The changes are instant, and will apply to all current C4. (Customising Option Explained in "Command Blocks & Their Code")
    Villagers Doom:
    2015-09-16_17.56.14.png Chaotic Chorus:
    2015-09-16_17.56.42.png
    Freshly Cooked:
    2015-09-16_17.57.32.png
    Boom Box
    2015-09-16_20.48.42.png
    (Note: The multi coloured notes required setting the particle "speed" (second to last number) to 1)
     
    Last edited: Sep 16, 2015
    Devourer and Inactive User like this.
  2. ShadowMage1

    ShadowMage1 Seraph of Twilight CHAMPION

    Messages:
    2,194
    Likes Received:
    4,451
    Trophy Points:
    209
    Minecraft:
  3. yotamdin

    yotamdin Is actually a cute anime girl in real life VIP

    Messages:
    1,264
    Likes Received:
    4,067
    Trophy Points:
    164
    Guild:
    Minecraft:
    *claps*


    #tencharpls
     
  4. The One-eyed Guy

    The One-eyed Guy that guy VIP+

    Messages:
    3,776
    Likes Received:
    2,705
    Trophy Points:
    136
    Guild:
    Minecraft:
    [​IMG]
    If only the forum wipe wiped the 10chars rule
     
  5. Nepeta Leijon

    Nepeta Leijon Rogue of Heart ♌ Leittarius CHAMPION

    Messages:
    3,917
    Likes Received:
    17,972
    Trophy Points:
    217
    Guild:
    Minecraft:
    Forum Wipes can't melt the steel beams of 10 Char Rule...
     
    blankman and The One-eyed Guy like this.
  6. The One-eyed Guy

    The One-eyed Guy that guy VIP+

    Messages:
    3,776
    Likes Received:
    2,705
    Trophy Points:
    136
    Guild:
    Minecraft:
    KILL IT WITH FIRE
     
  7. K™

    K™ Had a happy journey

    Messages:
    221
    Likes Received:
    501
    Trophy Points:
    72
    WHY DIDN'T ANYBODY TELL ME?
     
Thread Status:
Not open for further replies.