Everything posted by Abastro
-
[1.7.10] Changing a dropped item when it comes in contact with a fluid?
Since liquid don't have collision bounding box, 'ontemRightClick' would not work. Instead, you have to do it on PlayerInteractEvent, and check for collision into the fluid block. (Also, it would be CLICK_AIR mode)
-
[1.7.10] Centering a gui?
I think full code is needed to resolve this issue.
-
[1.7.10] How to save config into the server before world is loaded?
Thanks for the reply. I have to use config information to determine which dimension exists or not, and change the provider of Overworld. So is there any other way to do this without direct file operations?
-
[1.7.10] Multitool/paxel mod problem
Oh. I was blind Then nothing would be wrong.. Or try moving the item initialization code to preInit.
-
C17PacketCustomPayload Packet Sending To Bukkit Server
It's possible, but it is out of scope of this forum.
-
C17PacketCustomPayload Packet Sending To Bukkit Server
Didn't you just make the method 'S01PacketJoinGame' and want minecraft to call it automatically? If not, please post the code on the method call. + In most case, you should set up your own IMessage and IMessageHandler. Also, you should send packet(message) on FMLNetworkEvent.ClientConnectedToServerEvent.
-
[1.7.10] Multitool/paxel mod problem
Why did you declare 'private static final Set<Block> blocksEffectiveAgainst'? It would have no effect because it is private static and not used in the class.
-
[1.7.10] [SOLVED] Picking up a custom fluid with a vanilla bucket?
Check if 'BucketHandler#onBucketFill' get called or not.
-
[1.7.10] How to save config into the server before world is loaded?
Hi, I'm Abastro, developing Stellarium mod. Currently I'm working on config load/save part from World. So I set up some code with WorldSavedData, and I confronted a vital problem. The problem was: The dimensions(providers) should be changed via the content of the config. but the World instance does not exist when dimensions can be changed, so WorldSavedData is invalid on that moment. As a result, loading/saving with WorldSavedData is incompatible with changing dimensions. I want to know whether I'm wrong somewhere or there are the best solutions for this problem. Is there any breakthrough for this problem? I'm looking forward to it! Any help would appreciated!
-
[1.7.10] Multitool/paxel mod problem
So it cannot mine stone stairs/walls while it can mine stone block?
-
Adding GUI to vanilla Cauldron vs New Cauldron item? (1.7.10)
Subscribe to this event: 'PlayerInteractEvent', You can open your custom Gui there.
-
[1.7.10]Setting enchantment to a certain item
Besides, you should use GameRegistry#registerItemStack to register enchanted itemstack to the Creative Tabs. (onCreated only works for Crafting)
-
[1.7.10] Getting Translated Block Name
Oh it was vanilla block. What block do you want to show? And please post your current code of the item.
-
[1.7.10] Centering a gui?
Then your guiHeight would be wrong.
-
[1.8] More than 1 texture for item [Solved]
Ah, @Draco18s already said what you have to do. Use Item#setTextureName(String) and Item#getTextureName() instead of item.getUnlocalizedName().substring(5). And, you should use something like ISmartModel for changing model.
-
[1.7.10] Getting Translated Block Name
That should return the correct localized name. (Don't use StatCollector for that; It is already localized) It seems that forge couldn't find your lang file or your lang file does not contain the exact name. So please post where your lang files are, and the contents of them.
-
[1.8] Problems with Single player packet loss. [Solved]
Where do you send PacketPingClient message?
-
[1.7.10] Need my item to get the players display name
NBT works on both side, so it would not crash. + Your previous code should work, since itemstack got synced every tick. Does this print statement works? System.out.println("ENTITY GOTTEN");
-
[1.7.10] make tools not break
@HappyKiller101: That would not work, because damage value increases when tool is damaged. @BoonieQuafter-CrAfTer: Subscribe to the PlayerDestroyItemEvent, and give the dysfunctional itemstack to the player.
-
[1.7.10] Getting Translated Block Name
Use Block#getLocalizedName().
-
How many blocks per tick max is recommended for custom structure generation?
No, there would be no timeout. As far as I know, Client-Server Connection is handled by independent thread.
-
[1.8] More than 1 texture for item [Solved]
Then don't use item.getUnlocalizedName().substring(5). There is no reason for using that.
-
[1.7.10] Need my item to get the players display name
Ah I was blind.. I think isRemote check is not needed here, you would better manipulate NBT on both side.
-
[1.7.10] Need my item to get the players display name
@elix: That would be the same. @HappyKiller101: Where the 'itemInteractionForEntity' get called?
-
Export Mod From Eclipse 1.8?
You should initialize item first before initializing creative tab..
IPS spam blocked by CleanTalk.