Like for Javascript it is var name = <whatyoutypehere>
and then you can call it by if (<whatyoutypedhere> == X) { action}
How would this look like in this mod? And what kind of programming language is this? I have a little python and javascript knowledge, but this one seems to be a bit confusing. Thanks for helping me out!
Just one question, I noticed that knockback on player randomly breaks when hit by a blood leech, scorchfire or devilstar charge (from either a dispenser or mob for example) after getting hit again it randomly works again. This happens even when in creative mode! When deleting player data from world it also works again. Any ideas what could be causing it or if there is a faster workaround? Or advice on where to look further? Maybe it's another mod interfering, but maybe you know from your own code where to look at (what is being altered here why these bug out and the rest don't)
I understand if it's not supported anymore (1.7.10), just wanted to know!
EDIT: I compared the NBT of the player.dat before and after and it seems that these charges somehow add the generic.knockbackResistance to the player. Suggestions on how to disable it or which mod/command allows me to workaround it?
This only checks space once, so even if you don't hold it down, it'll still trigger after 250ms
you could also check after the wait, in which case you'd actually have to hold it (or press it again just before the wait finishes)
IF(SPACE);
Wait(delay)
IF(SPACE); Thing(); ENDIF;
ENDIF;
Hehe, you're hard to spot without the Pony picture! I got it working, however IF(SPACE), doesn't work. Also tried it with input KEYDOWN(jump) and then KEYUP(jump) worked for me. The script looks like this:
There is an issue now with going up while using flight and autojumping. You can't go up now anymore, because the script doesn't run it continously. Any way to hold keydown(jump) while holding the key down? I imagine it would look something like
DO;
Key(jump)
WHILE(SPACE)
ENDIF;
ENDIF;
Or something, but the problem is that "SPACE" doesn't work.
Now I am busy with another script. I want to cast a command with echo(/command) with keycombo's and rapid succession. Any way how to do that? Like the skillapi plugin. I would imagine it going a little like:
If Leftclick, < 100 ms leftclick , < 100 ms rightclick, < 100 ms rightclick, < 100 ms sneak, < 100 ms "m" key
do
echo(/cast earthquake)
or something like that.
How would I do this and to what trigger would I set this?
In 1.5.2 I noticed a severe lag in cities I created with Itemframes. I got rid of them and this helped. In 1.7.10 however I use this mod in dungeons I created and when the objects become visible the game drops from 110 fps to 36 fps. On my laptop it drops from 50 fps to 10, making the game unplayable. It's the same idea as the itemframes from 1.5.2. I must admit that I am on an older version decocraft from 2016, maybe you changed your code in the meantime. The lag however is an issue, I have installed it on a cauldron server. Running the latest java version (and even jre 1.7) on a GTX970 (old drivers, since minecraft gets -30 fps with the latest updates) and 16 gigs of RAM. There is no lag for me when the mod is installed though, only when placed.
It's not a great issue for myself, but to strengthen Frag's argument I posted here that there is definitely something going on with lag in 1.7.10
You sir helped me a lot! That worked! You helped me before with the level bars (on chat xp and having progression bars) and now with weapon speed! Awesome!!! Many Thanks!
In the script we use Key(attack); Would it be possible to change this to LMOUSE? Because with the current script, It is impossible to mine/break blocks. That is the only culprit left. I tried to do this, but I couldn't make it work. It doesn't matter if it needs to be a seperate script which needs all the items defined as well. If there is another workaround I would like to know.
I also wonder how many characters a textfile can have without making it lag. I have like 500 weapons I am going to categorise into weapon classes with the cooldowns. Not sure if this will cause issues?
Again, many thanks!!! This really spices up the gameplay :P. I used the cooldown from Dynamic Swordskills, but that changes every item.
Awesome! This worked! Now if it is possible, would it be possible to only play the script on certain items? And if not holding the id, no cooldown? Like
Haven't received an answer yet, I wonder if this is even possible:
Would it be possible to make a script that limits spamclicking with <item_id's>?
I am on 1.7.10
For example:
I have a 2h modded sword, but I can keep spamclicking it. I would like to limit that the sword cannot swing more than once per 15 ticks or something. And a dagger to swing once per 5 ticks. Is this possible? If it is, how can I achieve this?
Example idea:
stop leftclick if holding <modded_swordID> and a click was used 15 ticks ago. endif
Would it be possible to make a script that limits spamclicking with <item_id's>?
I am on 1.7.10
For example:
I have a 2h modded sword, but I can keep spamclicking it. I would like to limit that the sword swings to once per 15 ticks or something. And a dagger to swing once per 5 ticks. Is this possible? If it is, how can I achieve this?
0
Any way to get a target? Like for example you're looking at a creeper, then it outputs creeper?
For example:
If(%targetifthisexists% = creeper);
dothis
else if(%targetifthisexists% = mocreatures:Ogre); #this is a modded mob from a mod
dothis
else(%targetifthisexists% = null);
donothing
endif
And where can I find a documentation on everything?
0
I have a few questions:
How do I set a variable and check it later?
Like for Javascript it is var name = <whatyoutypehere>
and then you can call it by if (<whatyoutypedhere> == X) { action}
How would this look like in this mod? And what kind of programming language is this? I have a little python and javascript knowledge, but this one seems to be a bit confusing. Thanks for helping me out!
0
Best mod out there!
Just one question, I noticed that knockback on player randomly breaks when hit by a blood leech, scorchfire or devilstar charge (from either a dispenser or mob for example) after getting hit again it randomly works again. This happens even when in creative mode! When deleting player data from world it also works again. Any ideas what could be causing it or if there is a faster workaround? Or advice on where to look further? Maybe it's another mod interfering, but maybe you know from your own code where to look at (what is being altered here why these bug out and the rest don't)
I understand if it's not supported anymore (1.7.10), just wanted to know!
EDIT: I compared the NBT of the player.dat before and after and it seems that these charges somehow add the generic.knockbackResistance to the player. Suggestions on how to disable it or which mod/command allows me to workaround it?
0
Cool, but the link gives an 400 error. "Bad request". (Link on planetminecraft to drive).
0
That worked! Thanks!
0
Hehe, you're hard to spot without the Pony picture! I got it working, however IF(SPACE), doesn't work. Also tried it with input KEYDOWN(jump) and then KEYUP(jump) worked for me. The script looks like this:
KEYDOWN(jump);
WAIT(1ms);
KEYUP(jump);
IF(jumpflag);
ECHO(/cast doublejump);
UNSET(jumpflag);
ELSE;
SET(jumpflag);
WAIT(250ms);
UNSET(jumpflag);
ENDIF;
ENDIF;
There is an issue now with going up while using flight and autojumping. You can't go up now anymore, because the script doesn't run it continously. Any way to hold keydown(jump) while holding the key down? I imagine it would look something like
DO;
Key(jump)
WHILE(SPACE)
ENDIF;
ENDIF;
Or something, but the problem is that "SPACE" doesn't work.
0
Any way to program a delay?
For example, there is a spell on my server which casts a double jump via a /cast spell. I want to make it something like this:
If
Space
and after that < 10ms delay space again
echo(command)
How would that kind of a script look? And is this also possible to create more keys for a keycombo?
0
Thanks guys for helping me out few years ago!
Now I am busy with another script. I want to cast a command with echo(/command) with keycombo's and rapid succession. Any way how to do that? Like the skillapi plugin. I would imagine it going a little like:
If Leftclick, < 100 ms leftclick , < 100 ms rightclick, < 100 ms rightclick, < 100 ms sneak, < 100 ms "m" key
do
echo(/cast earthquake)
or something like that.
How would I do this and to what trigger would I set this?
Thanks in advance!
0
Can't wait until full release of Kazooie and Tooie
0
I actually have the same as Frag2000.
In 1.5.2 I noticed a severe lag in cities I created with Itemframes. I got rid of them and this helped. In 1.7.10 however I use this mod in dungeons I created and when the objects become visible the game drops from 110 fps to 36 fps. On my laptop it drops from 50 fps to 10, making the game unplayable. It's the same idea as the itemframes from 1.5.2. I must admit that I am on an older version decocraft from 2016, maybe you changed your code in the meantime. The lag however is an issue, I have installed it on a cauldron server. Running the latest java version (and even jre 1.7) on a GTX970 (old drivers, since minecraft gets -30 fps with the latest updates) and 16 gigs of RAM. There is no lag for me when the mod is installed though, only when placed.
It's not a great issue for myself, but to strengthen Frag's argument I posted here that there is definitely something going on with lag in 1.7.10
0
You sir helped me a lot! That worked! You helped me before with the level bars (on chat xp and having progression bars) and now with weapon speed! Awesome!!! Many Thanks!
0
Many thanks! Now I have 2 last questions though.
In the script we use Key(attack); Would it be possible to change this to LMOUSE? Because with the current script, It is impossible to mine/break blocks. That is the only culprit left. I tried to do this, but I couldn't make it work. It doesn't matter if it needs to be a seperate script which needs all the items defined as well. If there is another workaround I would like to know.
I also wonder how many characters a textfile can have without making it lag. I have like 500 weapons I am going to categorise into weapon classes with the cooldowns. Not sure if this will cause issues?
Again, many thanks!!! This really spices up the gameplay :P. I used the cooldown from Dynamic Swordskills, but that changes every item.
0
Awesome! This worked! Now if it is possible, would it be possible to only play the script on certain items? And if not holding the id, no cooldown? Like
IF(!cooldown);
ITEM = <item id or item id string, meta>
Key(attack);cooldown = true;
Wait(15t);
cooldown = false;
and if this isn't the case (you are not holding the item)
Default left click (not attack, since that is only once so you cannot mine)
0
Haven't received an answer yet, I wonder if this is even possible:
Would it be possible to make a script that limits spamclicking with <item_id's>?
I am on 1.7.10
For example:
I have a 2h modded sword, but I can keep spamclicking it. I would like to limit that the sword cannot swing more than once per 15 ticks or something. And a dagger to swing once per 5 ticks. Is this possible? If it is, how can I achieve this?
Example idea:
stop leftclick if holding <modded_swordID> and a click was used 15 ticks ago. endif
This would make my private rpgserver really cool.
Thanks in advance!
0
Would it be possible to make a script that limits spamclicking with <item_id's>?
I am on 1.7.10
For example:
I have a 2h modded sword, but I can keep spamclicking it. I would like to limit that the sword swings to once per 15 ticks or something. And a dagger to swing once per 5 ticks. Is this possible? If it is, how can I achieve this?
Thanks in advance!