• 0

    posted a message on Kill All Players at Certain Y Coordinate Question

    Gotcha - so if the server this map is going to be played on is set to detect when you knock a player out of the worl d(giving you the kill), this command block will also trigger the player as being knocked out of the world in the same exact way, thus giving Player1 the kill?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Kill All Players at Certain Y Coordinate Question

    Hey!


    I have set up a command block to kill any player who falls down to a certain Y value (like the void, but higher up). Here is the command


    /execute @a ~ ~ ~ kill @p[y=2,r=0]


    This will be used on a multiplayer server and I have one important question about the "kill"...


    On any normal map, if Player1 hits Player2 off a cliff and he lands on the ground he will take damage and "fall to his death". Player1 gets credit for killing Player2.


    On my map, if Player1 hits Player2 over the edge of a cliff, then mid-air Player2 gets killed by my command block, will Player1 still get credit for that kill?


    Let me know if anyone knows anything about this!


    Thanks,

    Whick

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Detect when player types a custom command

    Thanks Dan I might give that approach a go. Good idea. It's better than having them type the commands themselves.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Detect when a player breaks a certain block?

    Timothy!


    I got the logic working perfectly! It works just how expected - the red team can only break within the blue team area, and the blue team can only break within the red team area. There is just one major issue that seems to have come up as a result of this implementation. When I break the gold blocks with my fist, wooden pick, or stone pick the block will not get counted towards the BreakGold2, and the gold block will sometimes even stay there until you hit it again (or break it a bit). It's quite weird!


    I'm quite confused by this lag issue considering I am testing this in Vanilla singleplayer, and I have never seen block lag before in singleplayer. If needbe, I can send you the map file. Your solutions makes complete sense and it works perfectly, except for the fact that breaking the gold sometimes doesn't register :( Hopefully you might know why? If not, let me know and I will prepare a map file.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Detect when a player breaks a certain block?

    Timothy I am making progress, however my intention is not to erase their gold score every time they leave the monument. I am hoping to keep an ongoing record during the game of how many gold blocks every players has broken and display it in the list view so everyone knows who has broken how much gold. It's a team effort, so the idea is to let everyone know exactly how much gold every else has broken the entire game.


    The reason I need to make sure they only get gold credit for breaking inside a certain area is because they could cheat the system by going to their own team's gold and breaking it over and over (even though the server sets it to reappear automatically). I set teams right when a player joins the game and include their team in the @a identifier (along with the coordinates).


    I am currently having a problem where a player from the wrong team can earn BreakGold points for breaking gold on their own side.


    I did what you said, though, and hooked it up a testfor/comparator combo... only problem is I don't want to erase their score. Hopefully you know a solution?


    Here are my commands (all running on a rapid fill clock)...

    Assign teams at spawns (yes, I know I don't use the team option - I just used a custom objective):

    scoreboard players set @a[x=-1383,y=56,z=-3,r=3,Team=0] Team 1

    scoreboard players set @a[x=-1046,y=56,z=2,r=3,Team=0] Team 2



    Then I have the following commands...

    testfor @a[x=-1343,y=56,z=0,r=10,Team=2]

    comparator


    scoreboard objectives add BreakGold stat.mineBlock.41



    and...

    testfor @a[x=-1085,y=56,z=0,r=10,Team=1]

    comparator


    scoreboard objectives add BreakGold stat.mineBlock.41



    I need to only be adding a BreakGold score on a player by player basis (every player has their own score throughout the game), so I am also confused how that is accomplished with this logic.


    Thanks again for you help so far.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Detect when a player breaks a certain block?

    I actually have a question about this after further testing. How can I increment this scoreboard objective only for a player in a certain area?


    This is what I am attempting to use, but it does not seem to work.

    /scoreboard objectives add @a[x=-1343,y=56,z=0,r=10] BreakGold stat.mineBlock.41

    The output of the command block is as follows:

    [00:44:15] Usage: Invalid objective criteria type 'BreakGold'


    Important is that I created BreakGold as a dummy scoreboard objective - was that the right way?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Make a Block Unbreakable

    That makes a lot of sense Timothy - thanks for bringing that up. I am pretty sure it fails if there is already a block in place so it isn't causing lag to constantly place it.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Detect when a player breaks a certain block?

    Hey,


    I am trying to find out a way to tell when a player has broken a certain type of block. The block in this case would be a gold block. This is part of a PVP map I am creating where the goal is to run and break the enemy's gold. Every block of the gold a player breaks, I would like to increment their score (using a scoreboard objective).


    My only issue is I do not know how to detect when a player breaks a certain type of block.


    Any help would be appreciated.


    Thanks,

    Whick

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Make a Block Unbreakable

    Timothy, thanks for answering with this alternative solution. I can see how this would work, however the major problem is that I won't be able to tell where they broke the diamond block.


    What I have gone ahead and done is built setblock commands for each of the 15 diamond blocks. Though this is less efficient, it gets the job done.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Make a Block Unbreakable

    Both your ideas are solid solutions to the problem, however I don't have that level of control over the server I make maps for.


    I am not the server owner, so I cannot adjust the items/gamemodes/plugins... I was wondering if there is a way to make the diamond block unbreakable through some other means (other than constant setblocks for each one - which it's looking like I may have to do anyways).


    Whick

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Make a Block Unbreakable

    Hey!


    On a PvP map I am building I have "speed pads" in certain areas of the map that give a player 10 seconds of speed if they run on top of a diamond block. I would like to make these diamond blocks unbreakable to prevent players from destroying the speed pad.


    One method I could use is a constant setblock command with the coordinates of every diamond block in the map, but that is not efficient when I have about 10 of these around the map. Is there any command that I can build to prevent players from breaking a certain type of block instead?


    Thanks

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Alternative Question About Scoreboards

    This works perfectly! Thanks for the tips.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Alternative Question About Scoreboards

    Thanks you for your detailed and easy to understand explanation. This clears a lot of doubts and concerns up that I was having. Thanks for taking the time to write out the response, it will help me out a lot.


    While I am here I do have one more quick question: How do I set the scoreboard value of a player in a certain area using only one command block (or two, if one is not possible).


    If a player respawns at the spawn I would like to refresh the scoreboard values I assigned to them throughout their life by setting the values to 0.


    Thanks

    Whick

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Alternative Question About Scoreboards

    I don't really know how else to ask this question, but do scoreboard objectives and server plugins overlap?


    For example: If I submit a map to a server that is already tracking player kills on their side, and I made a scoreboard objective called "kills", could I add kills to my score in the game through pressing a button on the command block? Another example: if I make a "team" using scoreboards for red and blue, but the server already has red and blue, would I be able to alter the server's player assignments?


    Basically, when someone makes a server with plugins, does any part of that overlap with scoreboard objectives or teams?


    Thanks

    Whick

    Posted in: Commands, Command Blocks and Functions
  • To post a comment, please .