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.

endershadow

Forge Modder
  • Joined

  • Last visited

Everything posted by endershadow

  1. really? it works for me
  2. to log in, put "--username YOUR_USERNAME" in the arguments without the quotes. YOUR_USERNAME is the desired log-in name not your e-mail
  3. I think you have to use a packet handler to sync the client and the server in this case.
  4. in the code you have in your first post, you setting the slot to an item and not an item stack. try player.inventory.setInventorySlotContents(1, new ItemStack(Lyoko.itemWilliamSword)) And I didn't know my mod was that popular. but if you need any help I'm willing to help you out.
  5. I see you're also working on a code lyoko mod. so am I. I'd love to see what you have so far. maybe we could share code with each other?
  6. I would like to make a modification to that. that should work and spawn the item on the player.
  7. I think the best way so far is to change sendChatToPlayer into addChatMessage
  8. But he wants it to occur in right click with a special item.
  9. I'm not at my computer, but when I am I'll post some code that you can use.
  10. I can say right now, that's not gonna work. You can't compare World to Block. It just won't work. If you're new to java, I suggest understanding the concept of object oriented programming.
  11. I think it should be avoidable if they really want it to. They might want it to drop something no matter what.
  12. before LexManos replies to this, I'm going to assume he'll say something along the lines of personally I think just having a way to detect which player broke what block would be enough. maybe an event or method?
  13. if(stack != null && stack.getItem() != null) { if(stack.getItem() instanceof ItemBlock) { // Block code here } else { // Item code here } }
  14. Thanks! you all helped me alot with this. It now works how I want it to.
  15. let me see if I can understand this. you want me to make a bunch of threads with the default boolean value to false. then you want me to iterate through them all and while they're not finished, you want me to do something? I'm still kind of confused. if you have a skype it might be easier to talk through there.
  16. I sometimes answer things like this on my phone too, so I know how you feel. I actually got a decent Thread set up, but why do I need multiple threads if minecraft is single threaded? and how would I use the wait and notify methods in this scenario.
  17. ok, I got the thread to work, but it didn't reduce the lag at all. is there anything else I need to do? here's all the classes used https://github.com/code-lyoko-modding/CodeLyokoMod/blob/master/matt/lyoko/world/WorldGenTower.java https://github.com/code-lyoko-modding/CodeLyokoMod/blob/master/matt/lyoko/lib/TowerGenThread.java https://github.com/code-lyoko-modding/CodeLyokoMod/blob/master/matt/lyoko/world/StructureTower.java
  18. yes, but how do I make the thread do the world gen? I'm just not sure how to set up the run method. but I'll see what I can do.
  19. One of my structures causes the game to lag while it's being generated, and I was wondering if anyone knows how I can put it in a seperate thread to reduce the lag caused during structure generation. I just need to know how I would get the structure to generate in the new thread. I already have a class sort of set up. Here's what I have so far. https://github.com/code-lyoko-modding/CodeLyokoMod/blob/master/matt/lyoko/lib/TowerGenThread.java
  20. Pretty simple: DamageSource myDamageSource = new DamageSource("myMod.myDamageSource"); Then to add the death messages add a String localization for death.attack.myMod.myDamageSource for just dying and death.attack.myMod.myDamageSource.player for dying from another player or entity. Have a look at the Minecraft .lang files for examples. Thanks you two. That really helped. I'm really appreciative of you helping me with the damage source aspect. Now for the potion aspect of my question. How do you actually tell the game what each potion does.
  21. The constructor for DamageSource is protected. Any other ideas?
  22. I think you mean Block.bedrock.blockId
  23. you could check if it's in slots 0-9 if you want it to play while on the hotbar, otherwise check if it's the selected item.

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.