summaryrefslogtreecommitdiffstats
path: root/Server
diff options
context:
space:
mode:
authorMuhammad Kaisar Arkhan <accounts@yukiisbo.red>2018-09-24 22:32:47 +0200
committerAlexander Harkness <me@bearbin.net>2018-09-24 22:32:47 +0200
commit73689024f0b480afb84eeb898b3c429237359cab (patch)
treea9565258f6881f0691f398dd25f9dc75850c44e2 /Server
parentForce all headers other than "Globals.h" to be included with relative paths (#4269) (diff)
downloadcuberite-73689024f0b480afb84eeb898b3c429237359cab.tar
cuberite-73689024f0b480afb84eeb898b3c429237359cab.tar.gz
cuberite-73689024f0b480afb84eeb898b3c429237359cab.tar.bz2
cuberite-73689024f0b480afb84eeb898b3c429237359cab.tar.lz
cuberite-73689024f0b480afb84eeb898b3c429237359cab.tar.xz
cuberite-73689024f0b480afb84eeb898b3c429237359cab.tar.zst
cuberite-73689024f0b480afb84eeb898b3c429237359cab.zip
Diffstat (limited to 'Server')
-rw-r--r--Server/Plugins/APIDump/APIDesc.lua21
-rw-r--r--Server/monsters.ini2
2 files changed, 23 insertions, 0 deletions
diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua
index b6a4ec81e..193a58285 100644
--- a/Server/Plugins/APIDump/APIDesc.lua
+++ b/Server/Plugins/APIDump/APIDesc.lua
@@ -8771,6 +8771,16 @@ a_Player:OpenWindow(Window);
]],
Functions =
{
+ BurnsInDaylight =
+ {
+ Returns =
+ {
+ {
+ Type = "boolean",
+ },
+ },
+ Notes = "Returns whether the mob burns in daylight.",
+ },
CanBeLeashed =
{
Returns =
@@ -8990,6 +9000,17 @@ a_Player:OpenWindow(Window);
},
Notes = "Sets the age of the monster",
},
+ SetBurnsInDaylight =
+ {
+ Params =
+ {
+ {
+ Name = "BurnsInDaylight",
+ Type = "boolean",
+ },
+ },
+ Notes = "Sets whether the mob burns in daylight. Only evaluated at next burn-decision tick",
+ },
SetCanBeLeashed =
{
Params =
diff --git a/Server/monsters.ini b/Server/monsters.ini
index 2c8950a0c..ea6b68fba 100644
--- a/Server/monsters.ini
+++ b/Server/monsters.ini
@@ -147,6 +147,7 @@ AttackRange=15.0
AttackRate=1
MaxHealth=20
SightDistance=40.0
+BurnsInDaylight=1
[Slime]
AttackDamage=4.0
@@ -203,6 +204,7 @@ AttackRange=2.0
AttackRate=1
MaxHealth=20
SightDistance=25.0
+BurnsInDaylight=1
[ZombiePigman]
AttackDamage=7.0