1.18.2: add resource/_or_tag CommandNodes, from https://wiki.vg/index.php?title=Command_Data&oldid=17429
This commit is contained in:
parent
0c74fb29a7
commit
bb9cb7a837
|
@ -3525,6 +3525,12 @@ pub enum CommandProperty {
|
|||
EntitySummon,
|
||||
Dimension,
|
||||
UUID,
|
||||
ResourceOrTag {
|
||||
registry: String,
|
||||
},
|
||||
Resource {
|
||||
registry: String,
|
||||
},
|
||||
ForgeModId,
|
||||
ForgeEnum {
|
||||
cls: String,
|
||||
|
@ -3658,6 +3664,12 @@ impl Serializable for CommandNode {
|
|||
"minecraft:entity_summon" => CommandProperty::EntitySummon,
|
||||
"minecraft:dimension" => CommandProperty::Dimension,
|
||||
"minecraft:uuid" => CommandProperty::UUID,
|
||||
"minecraft:resource_or_tag" => CommandProperty::ResourceOrTag {
|
||||
registry: Serializable::read_from(buf)?,
|
||||
},
|
||||
"minecraft:resource" => CommandProperty::Resource {
|
||||
registry: Serializable::read_from(buf)?,
|
||||
},
|
||||
"forge:modid" => CommandProperty::ForgeModId,
|
||||
"forge:enum" => CommandProperty::ForgeEnum {
|
||||
cls: Serializable::read_from(buf)?,
|
||||
|
|
Loading…
Reference in New Issue