tmp2 help?

  • cat
    24th May 2016 Member 0 Permalink

    How would I make it automatically change the elements tmp2 when I put it on the screen without manually having to change it with !set

     

    Example:

     

    I want to place exot on the screen and its tmp2 will start off with 70000

  • CAC-Boomerang
    24th May 2016 Member 0 Permalink
    Unless I'm unaware of something, I don't believe that there is another way to do what you're suggesting with the same accuracy and convenience as the console, unfortunately
  • minecraft-physics
    25th May 2016 Member 0 Permalink
    Use DRAY to copy the EXOT
  • jward212
    26th May 2016 Member 0 Permalink

    this will do the exot thing as stated:

    just copy it into the console

     

    function TMP(i)
    tpt.set_property('tmp2', 70000, i)
    end
    tpt.element_func(TMP, tpt.element('exot'))

     

    if you want to do this with something else

    replace 70000 with the tmp2 value you want.

    replace the exot with whatever element you want

    then copy it into the console

    Edited once by jward212. Last: 26th May 2016
  • jacob2
    26th May 2016 Member 0 Permalink
    @jward212 (View Post)
    That is very inefficient and would set it to 70000 every frame, not just on creation. A faster method (which still sets it every frame though) would do that in a tick function.

    A more proper way to do it doesn't exist, because we don't have a method of setting default properties... a workaround (slow) is to have an update function and check if some random property like .pavg0 hasn't been set. If it has, then set tmp2 to 70000 and pavg0 to 1.
    Edited once by jacob2. Last: 26th May 2016
  • 008cff
    17th January Member 0 Permalink

    @cat (View Post)

     not the same thing but u can use up and down arrow to go through console commands already written, so u can just place all the exot, press up arrow, enter and u don't have to type 2 times, only 1 time, or use prop tool to set tmp2, tools or ctrl+p