alice-mkh / Minecraft-mods

Exalm's Minecraft mods
http://www.minecraftforum.net/topic/534818-
24 stars 21 forks source link

[SSP] Command block selectors do not work. #77

Closed williewillus closed 11 years ago

williewillus commented 11 years ago

Command block selectors @p @a and @r do not function properly in SSP mode. This breaks many maps using such blocks. Maybe a partial workaround would be to make all such references point to the SSP player himself?

alice-mkh commented 11 years ago

So, first I need to make commands support player argument. About half of commands are ported from 12w17a (The last version without internal server), so they don't. So I will make commands behave the same way as in SMP, except that the current behavior, where you could use /clear 4 0 instead of /clear Player 4 0 will still be supported. Edit: No, it's sometimes impossible to support both.

So:

williewillus commented 11 years ago

Alright, hope it works out as lots of modern maps nowadays use them. Thanks for the quick reply!

alice-mkh commented 11 years ago

https://github.com/Exalm/Minecraft-mods/commit/d721f897fb71041e7bed5b82891b03ebe1b5b3fb https://github.com/Exalm/Minecraft-mods/commit/b79c52c0a785b5f5ad94f2efb08fd1d5087f6c3a