1
Please help with command block code.
I am making a map where you fight zombies and use xp as currency. My problem is that I don't know how to make their xp go to 0 after they die. Can you please tell me a code to set xp to 0. Thanks
Create an account or sign in to comment.
6
soandso2You can try using "/xp (amount) @p"
Check out more at http://www.minecraftwiki.net/wiki/Command" onclick="window.open(this.href);return false;
By the way, could I possibly help make the map? If you cannot host a server, you can send the world file to me, and I could host it. Then, I can periodically send the world to you as a PMC project.
This map is actually already complete aside from reseting xp so theres nothing really left to build, sorry. I might make a larger map but idk so I will msg you if I do if you are intersted in helping.
Do you have a main spawn?
If so you could have the command "/xp -9999L @a[x,y,z,r=5]" hooked up to a clock(not and actual clock but a minecraft one look it up if unsure) inside the spawn but you can only exit not enter the spawn.
Btw, xyz are the coordinates of the spawn and r=5 means the command will effect people within a radius of 5 blocks to the coordinates.
P.s. You don't have to have a main spawn but then you would need to do this on all of your spawns.
Hope I helped
If so you could have the command "/xp -9999L @a[x,y,z,r=5]" hooked up to a clock(not and actual clock but a minecraft one look it up if unsure) inside the spawn but you can only exit not enter the spawn.
Btw, xyz are the coordinates of the spawn and r=5 means the command will effect people within a radius of 5 blocks to the coordinates.
P.s. You don't have to have a main spawn but then you would need to do this on all of your spawns.
Hope I helped
Could I possibly help please? I could host a server.
The map is already complete. I am probably making a larger adventure style map so if I do I will message you fi you want to help. (but i'm not planning on starting another project for afew weeks)
To reset xp just use: /xp -999999l(or just a really big number) @p(or player you want to specify).
You can try using "/xp (amount) @p"
Check out more at http://www.minecraftwiki.net/wiki/Command
By the way, could I possibly help make the map? If you cannot host a server, you can send the world file to me, and I could host it. Then, I can periodically send the world to you as a PMC project.
Check out more at http://www.minecraftwiki.net/wiki/Command
By the way, could I possibly help make the map? If you cannot host a server, you can send the world file to me, and I could host it. Then, I can periodically send the world to you as a PMC project.