My procedure isn't called when I want it.

Published by MMG on Thu, 08/01/2019 - 13:36
Upvotes: 2
Issue description

okay what to explain. I wanted to make more biomes in my underground dimension.

More Info: https://youtu.be/4VT6iEOsYxs

 

Workspace: https://drive.google.com/open?id=1dtvU91Cl82gNkZJyyotqCjX_l7Xoegpd

Also before you ask. Everything is made by 4 mod elements. They should be down in the list.

Issue comments

I did not get a list of mod elements in the list you talked about. And next time please include text description in the ticket too, not just the video.

On block placed is not called naturally (it is only called when entity places this block), but on block added is, this is the issue you are having.

This is not really bug report but support request and such things are better suited for the forums, so more users are there to see and help you as we have this tracker more for bug reports, not for support requests.

by a list I meant in mcreator element list interface (workspace tab)

also I though this is bug becouse it worked with other blocks

and one more thing. I mistaked the procedure trigger I said. It was not placed by, but it was when block added.

I am terribly sorry. I don't know whats'up with me lately

And can you try help me? as I said.

''by a list I meant in mcreator element list interface (workspace tab)

also I though this is bug becouse it worked with other blocks

and one more thing. I mistaked the procedure trigger I said. It was not placed by, but it was when block added.''

I have one question, why don't you just select the biome blocks by default, but use this replace system at the first place?

Becouse in nether like dimension you can't set more than 1 block, but you can set more than 1 biome. So I don't want to have

milion dimensions on every biome but I want all biomes in 1 dimension

Sorry. I know you have many work to do nd not only help greenhorn like me. But I just want to check if you haven't forget about this. Just want to be sure. I want to make some progress XD. Sorry

I am very busy right now so it might take me some time to get time to look into details.

Okay. I am okay with it. I just wanted to be sure. I go work on other features of my mod. Like new mobs. And blocks for that new biomes.

I see what the issue is. On block added is called when the generator places the blocks in dimension and this happens before the biomes are even defined. You will need to use a different approach to this. One idea would be to use tick event for checking, but this might cause a lot of lag.

I would start by tick update and see if the lag is not too bad. Otherwise, I am afraid one would need to write custom world gen to overcome this.

I will let you know if I get any other ideas.

This is strange, could you show the procedure you call on block tick update?

Could you try replacing this procedure with a simple replace block procedure and try to see if the blocks will replace with the second block? Thanks for the info.

This is very strange. It seems that tick update is not called on generated blocks. I think a better solution will be to add support to the nether generator to fully generate parts of dimension with custom blocks. I suggest you to open a ticket for this so we can try to properly solve the original issue :)



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.