Minecraft – Why don’t vanilla Minecraft “Exp Shops” work when Single Player Commands is installed

minecraft-java-editionmods

An Exp Shop is a button that, when pressed, will give you items in exchange for a set amount of exp. You build one by placing a button on a wall, and putting two repeaters and command blocks behind it. Here is a diagram:

 b  = button
[ ] = wall
 r  = repeater
[c] = command block

 b [ ] r [c] r [c]

In the first command block, you give the player the item if they have enough xp: give @p[lm={XP}] {ITEM ID} {QUANTITY}. In the second command block, you take xp from them: xp -{XP}L @p[lm={XP}]

The problem is that when single player commands are installed, it will take xp from the player but it won't give them the item. If single player commands are not installed, it works perfectly.

Is there a way to make it work both with and without single player commands?

Best Answer

As pointed out by SevenSidedDie, SPC overrides a few of the default commands, one of them most likely being /give. Do /help give to view about the command.

Yeah, a lot of Adventure maps say "Don't use SPC, it stuffs up our command blocks…" I'm not sure why the SPC devs decided to edit vanilla commands.