-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commands
C4 edited this page Jan 19, 2022
·
3 revisions
-
/curios <arg>
-
set <target> <slot> <amount>
- Sets a number of slots of a certain curio type to a player -
add <target> <slot> <amount>
- Adds a number of slots of a certain curio type to a player -
remove <target> <slot> <amount>
- Removes a number of slots of a certain curio type from a player -
clear <target> [slot]
- Clears all curio contents for a player (the slots will remain, the contents will be empty) -
reset <target>
- Resets player curios to default (the contents will be empty, the slots will return to default settings) - (Pre-1.17)
unlock
- Enables a curio type for a player - (Pre-1.17)
lock
- Disables a curio type for a player - (Pre-1.16)
enable
- Enables a curio type for a player - (Pre-1.16)
disable
- Disables a curio type for a player
-
Curios 1.16.5-4.0.8.0+ and 1.18.1-5.0.6.0+ introduces a new entity selector option to use with commands that target entities, such as @a
or @p
.
The option starts with curios=
and takes in a single CompoundTag
as an argument. A blank tag would be curios={}
.
The CompoundTag
has the following fields:
item
- required: false
-
type:
CompoundTag
- description: Denotes an item to match in the target's curios inventory.
-
example:
curios={item:{id:"minecraft:glass_bottle"}}
will search for aminecraft:glass_bottle
in the target's curios inventory.
slot
- required: false
-
type:
string[]
- description: Denotes a slot type to search in the target's curios inventory.
-
example:
curios={slot:["ring"]}
will search for"ring"
slots in the target's curios inventory.
index
- required: false
-
type:
int[min, max]
- description: Denotes the indices in slots to search in the target's curios inventory.
-
example:
curios={index:[0,1]}
will search for the first index of each slot type in the target's curios inventory.
exclusive
- required: false
-
type:
boolean
- description: Denotes whether or not the selector is searching for only one match.
-
example:
curios={slot:["ring"],exclusive:true}
will search for"ring"
slots in the target's curios inventory but will not return a match if any other slot type is found in the inventory as well.
Inverting
The selector option also supports inverting. Placing a !
before the CompoundTag
will invert the search. For example, curios=!{slot:["ring"]}
will search for targets that do not have "ring"
slots in their curios inventory.
Command: /kill @a[curios={item:{id:"minecraft:glass_bottle"},slot:["ring"]}]
Result: Kills all players who have a minecraft:glass_bottle
in a "ring"
slot of the curios inventory.