1

Please help with command block code.

jpeanut78985's Avatar jpeanut789854/22/13 5:45 pm
1 emeralds 615 6
4/26/2013 10:45 pm
jpeanut78985's Avatar jpeanut78985
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
Posted by jpeanut78985's Avatar
jpeanut78985
Level 7 : Apprentice Miner
2

Create an account or sign in to comment.

6

jpeanut78985
04/26/2013 10:43 pm
Level 7 : Apprentice Miner
jpeanut78985's Avatar
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.
1
gusgus
04/23/2013 5:57 am
Level 30 : Artisan Archer
gusgus's Avatar
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
1
Chuk40076
04/23/2013 5:54 am
Level 30 : Artisan Geek
Chuk40076's Avatar
Could I possibly help please? I could host a server.
1
jpeanut78985
04/26/2013 10:45 pm
Level 7 : Apprentice Miner
jpeanut78985's Avatar
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)
1
Falconblade99
04/23/2013 5:46 am
Level 31 : Artisan Architect
Falconblade99's Avatar
To reset xp just use: /xp -999999l(or just a really big number) @p(or player you want to specify).
1
soandso2
04/22/2013 5:50 pm
Level 15 : Journeyman Modder
soandso2's Avatar
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.
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome