mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 18:55:18 +00:00
Entity spawn
This commit is contained in:
parent
8dff3b55c9
commit
f2371d8735
@ -28,6 +28,7 @@ import com.volmit.iris.engine.object.biome.IrisBiome;
|
|||||||
import com.volmit.iris.engine.object.biome.IrisBiomePaletteLayer;
|
import com.volmit.iris.engine.object.biome.IrisBiomePaletteLayer;
|
||||||
import com.volmit.iris.engine.object.common.IrisScript;
|
import com.volmit.iris.engine.object.common.IrisScript;
|
||||||
import com.volmit.iris.engine.object.dimensional.IrisDimension;
|
import com.volmit.iris.engine.object.dimensional.IrisDimension;
|
||||||
|
import com.volmit.iris.engine.object.entity.IrisEntity;
|
||||||
import com.volmit.iris.engine.object.loot.IrisLootTable;
|
import com.volmit.iris.engine.object.loot.IrisLootTable;
|
||||||
import com.volmit.iris.engine.object.meta.InventorySlotType;
|
import com.volmit.iris.engine.object.meta.InventorySlotType;
|
||||||
import com.volmit.iris.engine.object.noise.IrisGenerator;
|
import com.volmit.iris.engine.object.noise.IrisGenerator;
|
||||||
@ -459,4 +460,18 @@ public class DecIrisStudio implements DecreeExecutor, DecreeStudioExtension {
|
|||||||
|
|
||||||
success("Done! " + report.getPath());
|
success("Done! " + report.getPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Decree(description = "Summon an Iris Entity", origin = DecreeOrigin.PLAYER)
|
||||||
|
public void summon(
|
||||||
|
@Param(description = "The Iris Entity to spawn", aliases = "e", name = "entity")
|
||||||
|
IrisEntity entity
|
||||||
|
) {
|
||||||
|
if (noStudio()){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
success("Spawning entity");
|
||||||
|
entity.spawn(engine(), player().getLocation().clone().add(0, 2, 0));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user