Topic category: User side tutorials
This is very specific and roundabout way to do this, so this might not work for everybody.
This tutorial will teach you how to create a mob that gives off light. This method spawns a no-collisions block at the location of the mob and deletes it when they walk away. You will need to follow these steps in this order!
Step One: Create a light block.
-Create a 16x16 image that is completely empty so that it appears invisible ingame.
-Create a new 'Block' mod element.
-It is important that you have transparency checked, as well as edit the block bounding box coords. You want this box to be as small as possible so people don't accidentally hit if trying to attack your mob.
-Next, you'll want to make sure the material is Air, and that it has no creative tab entry. It's Hardness and Resistance should be 0. Luminance can be defined however bright you'd like your light to be.
-Make sure you can walk through the block, and that the custom drop and creative pick item are air, just in case somebody does actually manage to break it, it wont give them anything.
-The block needs to be replaceable just incase somebody is building in the area, we want people to not even think that the block exists.
-The rest of the settings are up to you!
Step Two: Create Your Mob
-Create your mob. I've used a custom model and custom textures, but you can use whatever you like. I think you should try using the glow texture just to make the parts that you want the light to be coming from to glow a little.
-Everything about the mob is up to you, but I recommend making it slower to make the illusion work a little better.
Step Three: Create Your Procedure
-Within your mobs settings, create a procedure under the "On Entity Tick Update."
-We are essentially going to place a block at the mob's head (Y + 1) and delete any instances of the block that are next to it.
-The first if statement checks if Y + 1 has Air or Cave Air, and then places one of our light blocks at the same location. (Every empty slot is the light block, and every one with an invisible block is air.)
-Every following statement checks if there is a light block in a 3x3 cube around the light, by searching different x, y, and z values, then replaces the light with air. (You could probably do this easier with a /fill command or a variable.)
Step Four: Test!
-Compile everything and spawn your mob!
[I know there's a few problems if two of these same mobs get close to one another, but nothing too serious.]