The "?" integer would be used to randomly do something. It works for everything with a list(like /summon). an example for this integer would be:
/effect give @a ? 10000 255
all players would get a random effect at lvl 255 like this. You could also make the length and strenght of effects randomizable if you want.
Another idea would be that you could make the output not completely random, but using a # to only get certain things into the list. for example:
/fill ~ ~ ~ ~100 ~10 ~100 #logs
Like this you could randomly spawn logs in an area. I would also reccomend adding some new hashtags, for example #weapons, #armor or #stones which would be cool to make random kits or would help to make builds look random. with fill you should also be able to choose if you want to have the whole area with the same random block, or if you want to fill it randomly. You could for example add two integers there: ?all and ?individual. with the hashtags you could also add an all or an individual after the hashtag to change that.
Another great idea which would fit with this is the /ifaction command. it basically works like the /execute command, but it only does something if an entity/player does a specific action. You could use both of them together to make cool challenges and other things. You could for example use:
/ifaction @a get_hurt run effect give @p ? 10000 255
This command would give you a random effect whenever you get damaged which is cool. I explain the /ifaction command further in another post.
Please sign in to leave a comment.
3 Comments