From 961d5eb420182add0b6cb4d92f260b885563389c Mon Sep 17 00:00:00 2001 From: 12xx12 <44411062+12xx12@users.noreply.github.com> Date: Thu, 29 Oct 2020 21:47:20 +0100 Subject: Add beam target, configurable base visibility to Ender Crystals (#5010) * Fixes #4990 Co-authored-by: 12xx12 <12xx12100@gmail.com> --- Server/Plugins/APIDump/APIDesc.lua | 2 +- Server/Plugins/APIDump/Classes/World.lua | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) (limited to 'Server/Plugins/APIDump') diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index f1346ffee..fb74d8032 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -4500,7 +4500,7 @@ local Hash = cCryptoHash.sha1HexString("DataToHash") }, etEnderCrystal = { - Notes = "", + Notes = "The entity is a {{cEnderCrystal}}", }, etEntity = { diff --git a/Server/Plugins/APIDump/Classes/World.lua b/Server/Plugins/APIDump/Classes/World.lua index 7f137cf72..0ddd66e60 100644 --- a/Server/Plugins/APIDump/Classes/World.lua +++ b/Server/Plugins/APIDump/Classes/World.lua @@ -3306,6 +3306,28 @@ function OnAllChunksAvailable() All return values from the callbacks are i Notes = "Spawns a {{cBoat|boat}} at the specific coordinates. Returns the EntityID of the new boat, or {{cEntity#INVALID_ID|cEntity#INVALID_ID}} if no boat was created. (DEPRECATED, use vector-parametered version)", }, }, + SpawnEnderCrystal = + { + Params = + { + { + Name = "Pos", + Type = "Vector3i", + }, + { + Name = "ShowBottom", + Type = "boolean", + } + }, + Returns = + { + { + Name = "EntityID", + Type = "number", + }, + }, + Notes = "Spawns an {{cEnderCrystal|ender crystal}} at the specified coords. Returns the EntityID of the new ender crystal, or {{cEntity#INVALID_ID|cEntity#INVALID_ID}} if no ender crystal was created.", + }, SpawnExperienceOrb = { Params = -- cgit v1.2.3