Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

so I want to have minecraft run commands like effect or give by right clicking an item, I know what you might be thinking, I know howto add itemstacks, I literally just want to know how to make it run commands kk?

Im serious don't look at it!!

Use

MinecraftServer.getServer

to get the server instance,

MinecraftServer#getCommandManager

to get the server's command manager and

ICommandManager#executeCommand

to execute a command.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

  • Author

ok, so the actual purpose of the mod is for a build competition server that I am creating, and I want a unique way of doing things such as I want people to be able to log onto the server without the mod and still be able to participate, but if you have the mod then you have short cut to all these different commands, such as give this color of wool, or give this color of clay, is there any way to get past the client/server wall, or somewhere in the server files to allow the mod to work without having a cauldron server. thanks!

 

so yeah, I want the mod command to bypase the server side stuff.

I hope that makes sense.

 

Im serious don't look at it!!

  • Author

you are not sorry, I want it the other way around kinda, like minecraft clients have the ability to use commands with there mod instead of having to be op so yeah.

Im serious don't look at it!!

you can create your own commands and allow every user to use them. i dont think there is another way without making players op

So, cheating.

That might explain the +5/-40 karma. I smell a thread-lock coming.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

if you would actually think out side the box

1) Cut a hole in the box

2) Put your BoonieQuafter-CrAfTeR in that box

3) Make her open the box

And that's the way you do it ;)

I think its my java of the variables.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.