Immersive Vehicles (Formerly Transport Simulator)

Immersive Vehicles (Formerly Transport Simulator)

5M Downloads

[Enchantment] Improved coordinates summon

WANGNIMA912 opened this issue ยท 1 comments

commented

version: 1.20.1

Currently, Im working on some customed generatable structure for mod and Im trying to use command block to spawn vehicles with the following command:

summon mts:builder_existing ~ ~ ~
{
Invulnerable: 0,
entityid: "EntityVehicleF_Physics",
textnull: "(%f)",
packID: "mtsofficialpack",
CanUpdate: 1,
systemName: "bell47g",
electricPower: 12.0,
anglesy: 180.001,
subName: "_blue",
part_9:{
packID: "mtsofficialpack", systemName: "propellerrotor"
},
part_8:{
packID: "mtsofficialpack", systemName: "enginefranklin0335"
},
part_3:{
packID: "mtsofficialpack", systemName: "skidhelicopter"
},
part_2:{
packID: "mtsofficialpack", systemName: "skidhelicopter"
},
part_11:{
packID: "mtsofficialpack", systemName: "seat", subName: "black"
},
part_10:{
packID: "mtsofficialpack", systemName: "seat", subName: "black"
},
positionx: 107,
positiony: -59,
positionz: -47
}

But I found that the coordinates entry came after "/summon entity >~ ~ ~ < " is unusable because IV vehicle has its own coordinates system
(
positionx: 107,
positiony: -59,
positionz: -47
)
But if I remove the "positionx/y/z" and directly spawn the entiy, it will go to 0,0,0 of the world
So Im think if the "positionx/y/x" can automatically inherit the coordinates entry came after "/summon entity > ~ ~ ~ < " when they dosen't exist in the NBT entry of the entity