Everything posted by Draco18s
-
Custom Elytra
This until Forge patches it.
-
[1.11.2] [SOLVED] TileEntity performance
Routing energy through a wirenetwork isn't pathfinding?
-
[1.10.2] Item Variant not working.
Please stop using getUnlocalizedName for things that aren't display. ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(item.getRegistryName(), "spelltype="+meta));
-
[Solved] [1.10.2] How to add an API?
"my project"\src\api
-
[Solved] [1.10.2] Custom ore generation spawning in columns
The hell? https://github.com/16ColorGames/SuperTechTweaks/blob/master/src/main/java/com/sixteencolorgames/supertechtweaks/world/WorldGeneratorBase.java#L132-L135 Why are you sing random.double() for an integer value? https://github.com/16ColorGames/SuperTechTweaks/blob/master/src/main/java/com/sixteencolorgames/supertechtweaks/world/WorldGeneratorBase.java#L136 Also, your base Y value is 0, then you add 0, then you add 0 again. Also you randomize X and Z in three different places: https://github.com/16ColorGames/SuperTechTweaks/blob/master/src/main/java/com/sixteencolorgames/supertechtweaks/world/WorldGeneratorBase.java#L136 https://github.com/16ColorGames/SuperTechTweaks/blob/master/src/main/java/com/sixteencolorgames/supertechtweaks/world/WorldGeneratorCluster.java#L36 https://github.com/16ColorGames/SuperTechTweaks/blob/master/src/main/java/com/sixteencolorgames/supertechtweaks/world/WorldGeneratorCluster.java#L36 (or line 42)
-
Item crafted does not persist, but when taken from creative it persists
Hardly.
-
[1.10.2] Potion effect on complete set of armor is worn
You need to create a new class for your armors, rather than using new Chestplate
-
[1.10.2] Potion effect on complete set of armor is worn
Sorry, I haven't been all here. You can do this with an event, too.
-
[1.10.2] Potion effect on complete set of armor is worn
public class MyForgeEventHandler { @SubscribeEvent public void pickupItem(EntityItemPickupEvent event) { System.out.println("Item picked up!"); } } ... MinecraftForge.EVENT_BUS.register(new MyForgeEventHandler());
-
[1.10.2] Potion effect on complete set of armor is worn
In an event handler class. http://mcforge.readthedocs.io/en/latest/events/intro/
-
Item crafted does not persist, but when taken from creative it persists
With the amount of code you posted it was impossible for anyone here to have spotted your error. All you posted was your crafting recipe line. That's it. It's an obvious error to literally everyone that you have to pass in the same object to the recipe as to the game registry because if you don't how is the game supposed to know they're the same object? You created two different objects. So yeah, you'll get undefined behavior when you try to do something that was never intended to be done.
-
[1.11] how to make player hold an item that is not in his inventory
Sooo you want to store an ItemStack on an Entity
-
[1.11]Prevent item to be moved out of the inventory
Let me put it this way: Everything is possible, but it might be very very complicated or hackish.
-
[1.11]Prevent item to be moved out of the inventory
I think you have to go up to the previous event to that one. The...PlayerInteractEvent Edit: Ah, no, you'd have to cancel the PlayerInteractEvent.EntityInteract
-
[1.11] how to make player hold an item that is not in his inventory
Capabilities.
-
[1.11.2] [SOLVED] TileEntity performance
https://www.google.com/search?q=A*&ie=utf-8&oe=utf-8
-
[1.11]Prevent item to be moved out of the inventory
Ways to remove an item from your inventory: Dying Click-and-move in a GUI Shift-click in a GUI Q Click-and drop in a GUI Item Frame (There is no event or any other notification to any system anywhere that this occurs! The item stack is literally cloned and inserted into the frame and the original deleted (if stack-size of 1, otherwise the stack size is decremented)).
-
[1.11.2] [SOLVED] TileEntity performance
A* is awesome.
-
[Forge 1.11.2] How to create a tile entity, container and gui that has 3x3 crafting and moving progress arrow?
You need to sync the progress to the client. There are a bunch of threads on this forum about that.
-
[1.11.2] Custom Enchantments on Custom Items
Is that Ring classified as a MainHand item?
-
[1.11.2] Custom Enchantments on Custom Items
With a min-enchantability of 41! it'll almost never get picked, as generally speaking the highest enchantment possible that can show up on an item is ~30. You should also override canApplyAtEnchantingTable and canApply.
-
Getting EntityPlayer in a TickEvent to call another method.
Which player?
-
[1.11.2] Loop through Json file
You shouldn't be manually parsing JSON files. You should be using a deserializer.
-
[1.11]Prevent item to be moved out of the inventory
No. The are at least five ways items can leave the player's inventory and I know for a fact that at least one of them is undetectable. And the other four have no event to prevent.
-
[Solved][1.11.2] Using isRemote before Minecraft.getMinecraft can still cause a crash?
The answer is "yes it will." The reason it isn't has to do with the fact that the server isn't even loading your class, which invalidates the test.
IPS spam blocked by CleanTalk.