Option one time tick use

Published by Crayeights on
Status
Fixed
Issue description

I would like to make a one tick use option, as in an option for a tick update to only take place once and then after it stops, for world generation Purposes. I was trying to figure out how to get mushrooms to grow in my caves system. was trying to think of different ways of doing this and I know cant use update tick and not sure how random tick update works buy I assume it happens more then once but I also wont to add it so it can only happen with would spawn and not player placed.

yeah I wish I new more about java scrip on my own I learned a good bit about detection's from MCreator but got allot of ideas cant try out until my mind grows more into it. lol

thanks 

 

The only way I know how is create two of my block and set it to spawn this plant then turn it self in the non coded one but if I do add the structure things I already have and then add mobs and plants I believe I wont be able to run my mod with out 8 gigs of ram it runs fine at 3 at this time and I can get away with 2 but its starting to hit a point that is kinda upsetting me lol

Issue comments

even in 1.8.2 I was able to do more with less lag for some reason when it came to this kinda of stuff. sorry that came up again. :/

 

I do know if I set my cave block to be life grass then i can set it as plant to grow on but then if I do that that iw ill be able to plant all minecraft plants on my block and kinda wonted to make it so it can only be planted in darkness. on any block

umm I think for know ill make my stone replace normal shrooms for mine witch will be easyer

You can use on block added so the procedure only happens once at generation.

Or you can use update tick and use NBT block variables to store that the procedure was already executed once.

alright I am attempting to learn something new, sorry for asking but I know I can (get dimension ID of provided world) but can I use that somehow to set it so an action only happens if in my dimension. i'm assuming yes but not sure on the how?

You have get entity dimension ID procedure ID that returns you the current ID of dimension. You can use this ID with if block to check if ID is say 0 which would mean that the entity is currently in the overworld.

is there any way you can send me an image that shows an example of this. I am trying my best to get understand the best I can and sorry for my incompetence on the topic. lol