[Tutorial 1#] How to create a working zombie that burns at day (Simple and similar to vanilla zombies)

Started by aidanete on Fri, 07/26/2019 - 15:59

Topic category: User side tutorials

Last seen on 10:13, 6. Jul 2020
Joined Dec 2013
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
[Tutorial 1#] How to create a working zombie that burns at day (Simple and similar to vanilla zombies)
Fri, 07/26/2019 - 15:59 (edited)

I see that there are not any tutorials here in this forum section, most are topics asking help. I will try to make some tutorials of how to do things, and doing them properly. Here is my first tutorial.

Have you ever thought that creating a zombie that burns at day with a procedure was simple? I thought also that but I see I were wrong?

This tutorial will aim to be simple and have the best results as possible inside that simplicity. (This tutorial will only teach you how to do the zombie update tick procedure)

Let's start:


Step 1:

Obviously, the first thing we have to do is checking if the zombie it's actually on the surface or at least can see the sky. Let's do it:

Step 1


Step 2:

After that, we should check if it's actually daytime and if it's not raining or thundering. Let's put the corresponding blocks:

Step 2

To make external inputs, rightclick on an block like "and" and then click external inputs.


Step 3:

We need also to check if the zombie isn't in water. We need 4 checkings, 2 for flowing water and 2 for still water. Each one for the above half and below half of the zombie.

Step 3


Step 4:

Also we need to check if the entity is actually burning, because if we don't check that, the fire will resetted and the zombie will get damage faster. (When the mob starts to ingnite, it automatically gets a first damage, so if it resets constantly, it will get damage constantly)

Then also we need to check if the provided world is not remote. If you don't put that, you can get errors such as the zombe getting ignited at night, but doesn't taking any fire damage, etc.

Then set the provided entity on fire to 5 seconds, you can change those seconds if you want, 5 works fine for me at least.

Step 4


Step 5:

Then, return to the can see the sky condition, and place inside it, just after the day and rain conditions, the following conditions. First check if it's raining or thundering. Then if it's not the provided world remote and finally, extinguish the entity. Just like the image:

Step 5


Result:

So, the result will be something like the following image:Final

Hope this helps anyone, I know this code can be better, but it should work as a base. 

Anyways, thank you very much for reading and see you in the next tutorial or thing. Bye!

Edited by aidanete on Fri, 07/26/2019 - 15:59
Last seen on 09:51, 9. Jul 2020
Joined Apr 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Or you could just give it a…
Wed, 07/31/2019 - 20:58

Or you could just give it a zombie AI

Last seen on 00:49, 9. Jul 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
@Wes lol but ai bases limit…
Thu, 08/01/2019 - 08:57

@Wes lol but ai bases limit custom mobs

Last seen on 13:33, 9. Jul 2020
Joined Aug 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
You can just give to your…
Thu, 08/01/2019 - 14:21

You can just give to your mob the Restrict Sun AI block. it's working also. xD

Last seen on 08:54, 8. Jul 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Nice tutorial :) I think…
Fri, 08/02/2019 - 10:23

Nice tutorial :)

I think that checking for water is useless, because the fire automatically gets extinguished in water (but I'm not sure because not checking for it could cause more lag and glitches)

Last seen on 14:00, 6. Apr 2020
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Restrict Sun, bwahah
Sat, 08/03/2019 - 12:57

Restrict Sun, bwahah

Last seen on 08:54, 8. Jul 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Last time I checked Restrict…
Mon, 08/05/2019 - 14:01

Last time I checked Restrict Sun didn't work. It only made the mob run away from sunlight (as I recall)

Last seen on 10:13, 6. Jul 2020
Joined Dec 2013
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
@RaolTheBest, Restrict Sun…
Wed, 08/28/2019 - 17:43

@RaolTheBest, Restrict Sun does what you said, mob runs away from sun.

Checking water is important because if you don't check it, when the mob enters the water, it starts extinguishing and burning a lot fast and doing horrible sounds. I tested this way and works just perfect, I think, It may need some additional thing, but it's not really necessary :)

Last seen on 08:54, 8. Jul 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Ok :)
Wed, 08/28/2019 - 18:12

Ok :)