im on a server with iron selling by clicking at a npc and then right clicking a sign to lead me to clicking iron for a minute or so at spawn and i have to loot iron from a chest so how can i do this script. i have to go /spawn and /home ig to get to the chest and npc
im on a server with iron selling by clicking at a npc and then right clicking a sign to lead me to clicking iron for a minute or so at spawn and i have to loot iron from a chest so how can i do this script. i have to go /spawn and /home ig to get to the chest and npc. Anyone can help me?
Isn't there like a way to get the playername of a player that dropped the item to you?
I can't find any way =(
No, and that is information that i don't believe even exists
When you pick up an item, the server only tells the client that their inventory has changed and which 'dropped item' entity to animate, it doesn't specify the 'last owner' because it's irrelevant - i doubt the server even remembers
The same applies even to the moment when the item is dropped - the server doesn't say "That player dropped X item in Y direction", rather it just says "There's a new dropped item entity at position Z moving in direction Y with speed Q"
So the only way for a mod to be able to tell you who dropped an item would be to painstakingly track every new entity that appears and check if it was near another player, and just assume it was dropped by them
This would be a bunch of code, and still wouldn't work for items dropped outside your visual range (f.ex. if you arrive later),
And it would mistakenly assume every dropper/dispenser/mob drop that appears near the player was also 'dropped' by them
In conclusion, such a feature does not exist, very likely won't exist in this mod, and is pretty unlikely to exist in a clientside mod at all
However, a serverside plugin to track something like that would probably be a lot easier - so depending on the reason you're asking for this, might be something to look into
Well on the server im playin is the possiblity to execute the command /near , I still could not figure out howto extract only the name of the nearest player from the chat. Basicly I'm trying to archive that once a new item is added to the inventory the "Bot" executes /near (Works already)
The Chatformat is the following:
RANK: NAME(METERS)
Spieler: MyPlayerName(5m)
Any way I can get the closest name, all names are sperated by a ,
The messages appear separately, so what you need is at least two scripts
One that sends the commands
And another that runs for every message, checking if it's a name, checking if it's closer, and if it is - saving it
It would also have to detect when the server is done sending names...
Is there a specific message at the end of the list that could help with this?
I'm not sure where to report bugs, but I believe I found an annoying one that prevents summoning with data tags when within an ECHO().
For example if I were to use this command to summon a feather:
/summon minecraft:item ~ ~2 ~ {Item:{id:"minecraft:feather",Count:1},PickupDelay:20}
1 feather is dropped above the player with a slight pickup delay, exactly as expected.
However, if I were to use the same in an ECHO()
${ECHO(/summon minecraft:item ~0.3 ~0.25 ~-0.3 {Item:{id:"minecraft:feather",Count:1},PickupDelay:20,Motion:[0.0,0.2,0.0]})}$
It results in : Data tag parsing failed: Expected '}' but got 'C' at : {Item:{id:"minecraft:feather" C<--[HERE]
After looking at where it ends, it seems echo removed the comma, which is where it went wrong.
It's a little annoying as I'm writing a macro which enables an interaction with leaves to have a chance of an apple dropping, and I require the co-ordinates of the block in question in order for the item to drop at the block's previous position, which is only possible through ECHO().
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?
There is a delay command WAIT(<delay amount>)
So for your command, a simple version would possibly be
${
IF(SPACE);
WAIT(250ms);
ECHO(<command for spell>);
ENDIF
}$
If space is down wait 250 milliseconds then send the command for the spell.
The reason 250 would suit better is it'll trigger while you're already in the air rather than the double jump triggering just as you leave the ground.
You could possibly optimize it further by using DO, GETIDREL, and UNTIL after you jump to keep checking if the block below you is air, which will be at the top most of your jump, and when it is it will send the command then, but simple usually works best.
I'm not sure where to report bugs, but I believe I found an annoying one that prevents summoning with data tags when within an ECHO().
For example if I were to use this command to summon a feather:
/summon minecraft:item ~ ~2 ~ {Item:{id:"minecraft:feather",Count:1},PickupDelay:20}
1 feather is dropped above the player with a slight pickup delay, exactly as expected.
However, if I were to use the same in an ECHO()
${ECHO(/summon minecraft:item ~0.3 ~0.25 ~-0.3 {Item:{id:"minecraft:feather",Count:1},PickupDelay:20,Motion:[0.0,0.2,0.0]})}$
It results in : Data tag parsing failed: Expected '}' but got 'C' at : {Item:{id:"minecraft:feather" C<--[HERE]
After looking at where it ends, it seems echo removed the comma, which is where it went wrong.
It's a little annoying as I'm writing a macro which enables an interaction with leaves to have a chance of an apple dropping, and I require the co-ordinates of the block in question in order for the item to drop at the block's previous position, which is only possible through ECHO().
So for your command, a simple version would possibly be
${
IF(SPACE);
WAIT(250ms);
ECHO(<command for spell>);
ENDIF
}$
If space is down wait 250 milliseconds then send the command for the spell.
The reason 250 would suit better is it'll trigger while you're already in the air rather than the double jump triggering just as you leave the ground.
You could possibly optimize it further by using DO, GETIDREL, and UNTIL after you jump to keep checking if the block below you is air, which will be at the top most of your jump, and when it is it will send the command then, but simple usually works best.
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)
Have you tried quoting the string?
Echo("this,is,a,test") vs Echo(this,is,a,test)
I have tried the command in quotation marks, yes. However due to the item id also being in quotation marks, I think the command read only between the first and second ". Not the first and last, like I feel that it should.
Just tested it again and ${ECHO("/summon item ~ ~2 ~ {Item:{Id:"apple",Count:1}}")}$ resulted in Data tag parsing failed: Expected '}' but got '"'at: {Item:{Id:apple"<--[HERE]
So I think it might be misinterpreting the quote marks and after the quote it sees the next comma as another line. Although then again that might not be the case, as nothing else entered the chat, which would've happened if the echo dumped the rest.
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.
I have tried the command in quotation marks, yes. However due to the item id also being in quotation marks, I think the command read only between the first and second ". Not the first and last, like I feel that it should.
Just tested it again and ${ECHO("/summon item ~ ~2 ~ {Item:{Id:"apple",Count:1}}")}$ resulted in Data tag parsing failed: Expected '}' but got '"'at: {Item:{Id:apple"<--[HERE]
So I think it might be misinterpreting the quote marks and after the quote it sees the next comma as another line. Although then again that might not be the case, as nothing else entered the chat, which would've happened if the echo dumped the rest.
Not sure if that's supported, but two things you could try are:
Using different quotes (' around and " inside, or vice versa, f.ex. Echo("this is 'an' example"); Echo('and so is "this" now'))
Also it might be possible to escape quotes as in Echo("this is an \"escaped\" example")
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.
Use a key state macro?
Key Down: $${KeyDown(jump); // Rest of the script }$$
Key held:
Key up: $${KeyUp(jump);}$$
Not sure if that's supported, but two things you could try are:
Using different quotes (' around and " inside, or vice versa, f.ex. Echo("this is 'an' example"); Echo('and so is "this" now'))
Also it might be possible to escape quotes as in Echo("this is an \"escaped\" example"
OMG thank you sooooooooooo much! Using \ to ignore the next character worked perfectly! ^-^
$${ECHO("/summon item ~ ~2 ~ {Item:{id:\"apple\"\,Count:1}}")}$$
Succeeded in summon the apple above the player, I will now test to see if this works with my other script.
I'll keep this in mind for all future uses of the ECHO, which is pretty much the second most common one I use xD
There is not and according to the Mod author will never be.
Links to pdf format, downloadable, command lists for (these often clarify/expand descriptions, and where possible link to the author's posting):
MoreCommands: http://www.mediafire.com/view/qjc9c6klcnp660e/CmdLstMoreCommands.pdf
WorldEdit: http://www.mediafire.com/view/bi7r00xd9rgxrrt/WE_Commands.pdf
im on a server with iron selling by clicking at a npc and then right clicking a sign to lead me to clicking iron for a minute or so at spawn and i have to loot iron from a chest so how can i do this script. i have to go /spawn and /home ig to get to the chest and npc
im on a server with iron selling by clicking at a npc and then right clicking a sign to lead me to clicking iron for a minute or so at spawn and i have to loot iron from a chest so how can i do this script. i have to go /spawn and /home ig to get to the chest and npc. Anyone can help me?
No, and that is information that i don't believe even exists
When you pick up an item, the server only tells the client that their inventory has changed and which 'dropped item' entity to animate, it doesn't specify the 'last owner' because it's irrelevant - i doubt the server even remembers
The same applies even to the moment when the item is dropped - the server doesn't say "That player dropped X item in Y direction", rather it just says "There's a new dropped item entity at position Z moving in direction Y with speed Q"
So the only way for a mod to be able to tell you who dropped an item would be to painstakingly track every new entity that appears and check if it was near another player, and just assume it was dropped by them
This would be a bunch of code, and still wouldn't work for items dropped outside your visual range (f.ex. if you arrive later),
And it would mistakenly assume every dropper/dispenser/mob drop that appears near the player was also 'dropped' by them
In conclusion, such a feature does not exist, very likely won't exist in this mod, and is pretty unlikely to exist in a clientside mod at all
However, a serverside plugin to track something like that would probably be a lot easier - so depending on the reason you're asking for this, might be something to look into
'Cause tomorrow spring is here
The messages appear separately, so what you need is at least two scripts
One that sends the commands
And another that runs for every message, checking if it's a name, checking if it's closer, and if it is - saving it
It would also have to detect when the server is done sending names...
Is there a specific message at the end of the list that could help with this?
--- Listing nearby players (3) ---
someplayer(10m)
someotherplayer(100m)
closestplayer(2m)
-- End of list --
'Cause tomorrow spring is here
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?
[SSSS]
Finally, the page is back up! ^-^
I'm not sure where to report bugs, but I believe I found an annoying one that prevents summoning with data tags when within an ECHO().
For example if I were to use this command to summon a feather:
/summon minecraft:item ~ ~2 ~ {Item:{id:"minecraft:feather",Count:1},PickupDelay:20}
1 feather is dropped above the player with a slight pickup delay, exactly as expected.
However, if I were to use the same in an ECHO()
${ECHO(/summon minecraft:item ~0.3 ~0.25 ~-0.3 {Item:{id:"minecraft:feather",Count:1},PickupDelay:20,Motion:[0.0,0.2,0.0]})}$
It results in : Data tag parsing failed: Expected '}' but got 'C' at : {Item:{id:"minecraft:feather" C<--[HERE]
After looking at where it ends, it seems echo removed the comma, which is where it went wrong.
It's a little annoying as I'm writing a macro which enables an interaction with leaves to have a chance of an apple dropping, and I require the co-ordinates of the block in question in order for the item to drop at the block's previous position, which is only possible through ECHO().
${
RANDOM(#random,20,0);
TRACE(3,false);
IF((%TRACEID% = "leaves") && (%ITEM% = "air") && (#random = 0));
KEY(ATTACK);
ECHO(/particle blockcrack %TRACEX% %TRACEY% %TRACEZ% 0.25 0.25 0.25 1 30 normal @a 18);
ECHO(/setblock %TRACEX% %TRACEY% %TRACEZ% air 0 replace);
ECHO(/summon minecraft:item %TRACEX% %TRACEY% %TRACEZ% {Item:{id:"minecraft:apple",Count:1},PickupDelay:20,Motion:[0.0,0.2,0.0]})
ENDIF;
}$
If anyone can tell me some kind of a workaround that works in the meantime I'd love to hear it.
There is a delay command WAIT(<delay amount>)
So for your command, a simple version would possibly be
${
IF(SPACE);
WAIT(250ms);
ECHO(<command for spell>);
ENDIF
}$
If space is down wait 250 milliseconds then send the command for the spell.
The reason 250 would suit better is it'll trigger while you're already in the air rather than the double jump triggering just as you leave the ground.
You could possibly optimize it further by using DO, GETIDREL, and UNTIL after you jump to keep checking if the block below you is air, which will be at the top most of your jump, and when it is it will send the command then, but simple usually works best.
Have you tried quoting the string?
Echo("this,is,a,test") vs Echo(this,is,a,test)
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;
'Cause tomorrow spring is here
I have tried the command in quotation marks, yes. However due to the item id also being in quotation marks, I think the command read only between the first and second ". Not the first and last, like I feel that it should.
Just tested it again and ${ECHO("/summon item ~ ~2 ~ {Item:{Id:"apple",Count:1}}")}$ resulted in Data tag parsing failed: Expected '}' but got '"'at: {Item:{Id:apple"<--[HERE]
So I think it might be misinterpreting the quote marks and after the quote it sees the next comma as another line. Although then again that might not be the case, as nothing else entered the chat, which would've happened if the echo dumped the rest.
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.
[SSSS]
Not sure if that's supported, but two things you could try are:
Using different quotes (' around and " inside, or vice versa, f.ex. Echo("this is 'an' example"); Echo('and so is "this" now'))
Also it might be possible to escape quotes as in Echo("this is an \"escaped\" example")
Use a key state macro?
Key Down: $${KeyDown(jump); // Rest of the script }$$
Key held:
Key up: $${KeyUp(jump);}$$
'Cause tomorrow spring is here
That worked! Thanks!
[SSSS]
OMG thank you sooooooooooo much! Using \ to ignore the next character worked perfectly! ^-^
$${ECHO("/summon item ~ ~2 ~ {Item:{id:\"apple\"\,Count:1}}")}$$
Succeeded in summon the apple above the player, I will now test to see if this works with my other script.
I'll keep this in mind for all future uses of the ECHO, which is pretty much the second most common one I use xD
Is there anyway to get if a particular x,y,z coord has a player in it?
GETID(<x>,<y>,<z>,<#idvar>,[#datavar]) does it but only for items and not player entities.
not with default macromod @my_names_jeffeh
@viinexxtwitch's problem was solved
@ninj unset(&recenttrans[]), brackets are important
Is there any way to click an enchantment table slot?
Can you put a GUI on the inventory screen? Or open a GUI with key? Doesn't seem like it.