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

1) No one understands what you're asking about

2) Don't bump your post when it's still as new as it is.  The forums are highly inactive right now because the site keeps going down.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

I mean make my mod run commands like /kick or /time set day  from in its code.

Start by looking at net.minecraft.command.CommandBase

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

I have read all the stuff in the net.minecraft.commands for days before posting unlike some people here I try before using the forums.

unlike some people here I try before using the forums.

 

Good. :)

 

It just isn't always apparent that any given poster has. ;)  Especially when the opening post is as short and as confusingly written* as it is.

 

That said, I have no idea how to do what you're trying to do.  I simply looked at the decompiled source code for a mod that does and tried to figure out how it worked (but as its not deobfuscated, references to vanilla classes is shaky at best).  All I can tell is that he extended that base class. :\

 

*My guess is that English is not your native language.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

It is my native but I misted this went the site was eroding every thing till it worked.

It is my native but I misted this went the site was eroding every thing till it worked.

 

*cough*

1) "Missed"

2) "When"

3) I am not sure what this means

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

It is my native but I misted this went the site was eroding every thing till it worked.

 

*cough*

1) "Missed"

2) "When"

3) I am not sure what this means

Eroding? To erode means to weather away. It's usually used to refer to geological processes that affect dirt and stone.

 

Hmm... I see mod potential. "DustBowl! For all your soil erosion needs!"

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Eroding? To erode means to weather away. It's usually used to refer to geological processes that affect dirt and stone.

 

Hmm... I see mod potential. "DustBowl! For all your soil erosion needs!"

 

The word I understand, it's the phrasing that was used.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Eroding? To erode means to weather away. It's usually used to refer to geological processes that affect dirt and stone.

 

Hmm... I see mod potential. "DustBowl! For all your soil erosion needs!"

 

The word I understand, it's the phrasing that was used.

I understand that; I was being sardonic. I suspect he didn't mean "erode", but I can't think of what else would fit either.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Regarding the problem Chibill, as always, you should first of all look at Vanilla Minecraft code of blocks, items etc. which do the thing you want to achieve already. For your purpose I recommend you taking a look at the command block's TileEntity. It is found in net.minecraft.tileentity.TileEntityCommandBlock and you should take a look especially at the executeCommandOnPowered() method.

  • Author

I looked there first but I think I can fined the code in the mod some one said above.

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.