The Meaning of Life, the Universe, and Everything.
Join Date:
3/3/2015
Posts:
68
Location:
IN FAR FAR UNIVERSE
Minecraft:
no
Member Details
Hi! I am working of my new mod and i really need help :-(
So i need A FUNCTION that makes VARIABLE or A TIMER work
I mean i know how to
var x = false;
(My code here)
function useItem(my code)
(My code)
But i need that hmm i need my variable to work like when player touches a BLOCK (specified, custom) it makes var = TRUE and when it is, it makes leave a BLOCK behind player when he walks like SNOW in Element Shifter Mod.
THANKS
I will give you a credit :-3
Rollback Post to RevisionRollBack
Do you want a cupcake? Oops we haven't cupcakes...
Hi! I am working of my new mod and i really need help :-(
So i need A FUNCTION that makes VARIABLE or A TIMER work
I mean i know how to
var x = false;
(My code here)
function useItem(my code)
(My code)
But i need that hmm i need my variable to work like when player touches a BLOCK (specified, custom) it makes var = TRUE and when it is, it makes leave a BLOCK behind player when he walks like SNOW in Element Shifter Mod.
THANKS
I will give you a credit :-3
Do you want a cupcake? Oops we haven't cupcakes...
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIf you want to make a timer or do something (nearly) always, you always use
function ModTick()
because it is called 20 times per second, and for a timer you just need a variable be counted up whenever modTick is called.
(I don't want credit.)
Haha thanks my ModTick() makes my block appear one time only (or one time a minute) thnx xD
Do you want a cupcake? Oops we haven't cupcakes...