Detection of player's party Pokemon in commands
Posted: 09 Sep 2023 22:47
This feature basically would allow those who write commands to read and execute data based on what Pokemon are in a player's party or possibly PC. To me, ideally if a player runs
Another possible implementation I've found is a slight change in the behavior of the /poketest command. In my testing, attempting to detect a Mudkip, and apply a score of 1 if true to a dummy scoreboard objective, I used the command
If the behavior was coded slightly different to store a 0 on failure to find an appropriate spec, that would essentially introduce this feature as well through these data store commands. In this method, if a Pokemon is not in the slot at all, /poketest fails to find anything, and results in a 0. But a present Pokemon with the incorrect spec still runs the command, and outputs a 1 even when the result is the Pokemon does not match a species spec.
Code: Select all
, their party Pokemon could be read and modified in addition to their playerdata. /data get entity @s
Another possible implementation I've found is a slight change in the behavior of the /poketest command. In my testing, attempting to detect a Mudkip, and apply a score of 1 if true to a dummy scoreboard objective, I used the command
Code: Select all
However, the result of the command stores a value of 1 upon success, and failure to match the spec of Mudkip in slot 1. /execute store result score @s PokeHave run poketest 1 mudkip
If the behavior was coded slightly different to store a 0 on failure to find an appropriate spec, that would essentially introduce this feature as well through these data store commands. In this method, if a Pokemon is not in the slot at all, /poketest fails to find anything, and results in a 0. But a present Pokemon with the incorrect spec still runs the command, and outputs a 1 even when the result is the Pokemon does not match a species spec.