Just place all of this into a lua file into data/monster/
local creatureevent = CreatureEvent("xxx") -- *1
function creatureevent.onDeath(creature, corpse, killer, mostDamageKiller, lastHitUnjustified, mostDamageUnjustified)
Game.createMonster("MonsterName", creature:getPosition(), false...