Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

namarino41

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by namarino41

  1. I'm executing a command from within my mod that spits out a location. Is there a way I can read the output of that command? I tried subscribing to chatclient events, but they don't seem to capture the feedback. Any help would be appreciated. Thanks!

  2. Hello, is there a way I can get an entity's location by referencing it's name similar to the following command: "/data get entity @e[name="special_portal\,limit=1] Pos". I'm on 1.16.5 and I can't seem to find anything about this. Thanks!

  3. 18 minutes ago, Luis_ST said:

    I can remember that there was a Dummy CommandSource, unfortunately I don't know whether it still exists and if so in which class, I also don't know whether you should use it.

    which command do you want to execute? since there is usually another possibility to execute the command code without using a command

    Yeah unfortunately there are some commands that another mod makes available and I want to call those. Sounds weird, but there's a reason for it, trust me haha. Problem I'm facing right now is I can't seem to get a server instance that isn't null...

  4. 6 minutes ago, diesieben07 said:

    Look at where Minecraft calls this method and see what it does to create the CommandSource.

    Ok will do. I would recommend being a little more polite in the future also. I've seen a number of your posts and many of them come across as pretty rude and condescending. Don't assume that because someone is asking a question you think is stupid, he's deserving of that sort of attitude. Ignorance isn't stupidity.

  5. 11 minutes ago, diesieben07 said:

    You have been told exactly which method you need to call. If you don't know how to call methods you need to go and learn Java before modding.

    I know how to call methods, thanks. There are other things you need to pass into those methods that I can't get, like the commandsource.

  6. Hello. I'm creating an item that executes a command when you use it. Don't ask why, there's a reason why I'm going this route instead of just calling the code the command actually executes. Can someone help with this? Everything resource I've found has been for older versions. Would appreciate any help you can provide. Thank you!

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.