Member
Level 50
Grandmaster Architect
78

Forum Posts

1 - 9 of 9

    SlaimCraft
    11/27/2013 7:03 pm
    Level 50 : Grandmaster Architect
    I have no easy solution to your problem, that's for you to figure out but I'd be happy to tell you how stat.useItem works.

    If we take your example, we want to be able to know when a player uses a golden shovel, keep in mind, by "using" we mean mining a block with it, that's all stat.useItem will detect for shovels. More info about what stat.useItem detects can be found here: http://minecraft.gamepedia.com/Scoreboard

    So, we create a scoreboard, /scoreboard objectives add flashlight stat.useItem.284

    In our testfor block hooked up to the clock we type, /testfor @p[score_flashlight=1,score_flashlight_min=1]

    When you use an item with stat.useItem your score goes up everytime you use it. So if I dig a dirt block my score becomes 1, if I dig another the score becomes 2 and so on.

    To keep detecting everytime you use it you need to add a block after the testfor that says, /scoreboard players set @p[score_flashlight=1,score_flashlight_min=1] flashlight 0, that will reset the testfor block and allow you to use it again.

    It can also be smart to add, /clear @p[score_flashlight=1,score_flashlight_min=1] 284 and /give @p[score_flashlight=1,score_flashlight_min=1] 284 before you set their score back to 0, that would replace their "flashlight" with a new one that have not lost any durability.

    Hope that somewhat helps. If you have more questions just ask.
    1
    SlaimCraft
    11/25/2013 12:30 pm
    Level 50 : Grandmaster Architect
    Here's a pic of the clock:



    Green is input, blue output after 5 min and red after 10.

    What happens when someone gets 0 health, do they lose? Otherwise if you really do not want them to get negative score and there's no way to regain score just put a block at the end of the series that replaces the commandblock with air that sets their score to 0.
    1
    SlaimCraft
    11/23/2013 10:51 pm
    Level 50 : Grandmaster Architect
    1. 2 five minute timers and hook up the commandblock that warns the player that 5 minutes remain in between them. For a five minute timer just do a dispenser with a wooden pressureplate under and a torch under the pressure plate. The output will start as on and when the item dispenses it will turn off, The item despawns after 5 minutes turning the output on again and activating the warn block and the next 5 min timer.

    2. There might be easier solutions for this but here's what I came up with.

    For this to work I am assuming that you can gain healthpoints in the game, not only lose.

    So, at the end of the line of commands that removes 1 point for Red you have a testfor block. It tests if the healthscore is at 1, if it is it activates /setblock commands that replaces the /scoreboard players remove Red 1 block with air, Red is then unable to get any lower than 1 point. For this to work you then need to have a commandblock in the line that increases the healthscore that recreates the commandblock you destroyed with /setblock, so if you're health goes up to 2 the commandblock that removes points is back again.

    If I explained poorly ask again and I'll try to be more precise.
    1
    SlaimCraft
    11/20/2013 8:36 pm
    Level 50 : Grandmaster Architect
    I have, that is how you color text in external editors like mcedit but you can't type that symbol into minecraft itself.
    1
    SlaimCraft
    10/16/2013 12:35 pm
    Level 50 : Grandmaster Architect
    Gosh, thank you, {Command:/tp @p[team=red] 0 64 0} was the part I was after.

    I had been trying for a long time but it seems I used too many parenthesis where none was needed. Thanks.
    1
    SlaimCraft
    05/03/2013 11:28 am
    Level 50 : Grandmaster Architect
    There's a NBT editor filter, not by sethbling but it can help you with this. If you use the filter on a dropped item there's a line at the top that says "Age". Items despawn after 5 minutes which is 6000 ingame ticks.

    Say you want the item to despawn after 30 sec you do 30*20 which is 600 then you set the age to 6000-600=5400
    1
    SlaimCraft
    04/29/2013 4:40 pm
    Level 50 : Grandmaster Architect
    A minigame I've made. Not so much redstone but a lot of commandblocks and it required a lot of thinking ahead to make. The map is also resets itself which is pretty neat

    http://www.planetminecraft.com/project/ ... -minigame/
    1
    SlaimCraft
    04/29/2013 4:30 pm
    Level 50 : Grandmaster Architect
    1. For the scoreboard to show up someone needs to get a point in that scoreboard given that you've set it to display in the sidebar. You can do this and still keep everyone's score at 0 by having:

    /scoreboard player set @p kills 1

    followed by

    /scoreboard players set @p kills 0

    I guess you could have that in the spawncube loop but since you only need it to activate once it might be best to either put a feedback loop on it so it's always on after the first time or have it activate once the game actually starts.

    2. That's not possible as of now.

    3. Testing for team kills might prove to be a bit tricky. Only way I can think of would be to first add each team to 2 new scoreboard, one for each team that have the deathCount prefix. You would need to have a testfor command in a clock that checks for players with 1 death on red team, as soon as someone dies on red team that commandblock will output and you would have to hook that up to a small counter and a commandblock that sets that players deathcount back to 0. Meaning it would give a pulse each time someone dies and when 20 persons on red team have died the game is over, but that would include them dieing from other causes that just other players too.

    4. If it's just killing the player you're after there's the /effect commands which can do that for you otherwise the TNT have to land in water to not destory the environment.

    Hope some of that info helps you out
    1
    SlaimCraft
    04/29/2013 4:03 pm
    Level 50 : Grandmaster Architect
    Yeah you've mixed up the order there a bit, should be /testfor @p[lm=4,r=20]
    1

1 - 9 of 9

Welcome