Everything posted by endershadow
-
Logging in?
really? it works for me
-
Logging in?
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
-
[1.6.1] add item to players inventory?
I think you have to use a packet handler to sync the client and the server in this case.
-
[1.6.1] add item to players inventory?
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.
-
[1.6.1] add item to players inventory?
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?
-
Make bedrock distructible
I would like to make a modification to that. that should work and spawn the item on the player.
-
sendChatToPlayer()
I think the best way so far is to change sendChatToPlayer into addChatMessage
-
Make bedrock distructible
But he wants it to occur in right click with a special item.
-
Make bedrock distructible
I'm not at my computer, but when I am I'll post some code that you can use.
-
Make bedrock distructible
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.
-
"Privatize/Hide/restrict access to" raw block place/break/replace methods
I think it should be avoidable if they really want it to. They might want it to drop something no matter what.
-
"Privatize/Hide/restrict access to" raw block place/break/replace methods
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?
-
Block or Item ?
if(stack != null && stack.getItem() != null) { if(stack.getItem() instanceof ItemBlock) { // Block code here } else { // Item code here } }
-
using threads for world gen
Thanks! you all helped me alot with this. It now works how I want it to.
-
using threads for world gen
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.
-
using threads for world gen
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.
-
using threads for world gen
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
-
using threads for world gen
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.
-
using threads for world gen
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
-
adding custom potion effects and custom damage sources
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.
-
adding custom potion effects and custom damage sources
The constructor for DamageSource is protected. Any other ideas?
-
Make bedrock distructible
I think you mean Block.bedrock.blockId
-
[SOLVED]Adding a humming noise to item when being held in hand
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.
-
fluid luminosity only working on source block
Thanks!
-
adding custom potion effects and custom damage sources
bump
IPS spam blocked by CleanTalk.