Everything posted by Draco18s
-
Model Armor HelpMe !!
I honestly do not know what the problem is.
-
[1.5.2] Custom Paintings for MC
There suppose to be more of painting files. Like Model or something, cuz i havent seen any String on taking texture. EntityPainting uses an ENUM to describe paintings. The texture path is handled by the renderer, but the ENUM describes the painting name ("skull") as well as its UV position in the texture and width and height (UVWH are all full-block values, eg. 0,0 with width/height 1,1 would be a 1x1 painting located in the upper left of the texture, which at the default resolution would be 16x16 pixels).
-
Integration with other mods without being a dependency
You can use Loader.isModLoaded("IC2") in place of that reflection call. I wasn't aware of the Forge method when I did that.
-
[SOLVED][1.6.4]Helmet that adds Infinity to Items Help
Also: Tip: There are multiple ways to get rid of an item so it's no longer your active one. Tip #2: One of them involves Item Frames. An item that goes into a frame ceases to exist with no function calls or events. So unless your plan is to let the player have infinite* free infinity bows, this is an idea that is doomed to failure. Tip #3: The helmet no longer being worn / ceasing to exist will also need to be covered. *Pun not intended, but enjoyed. And only "inifinite-until-helmet-breaks" of course.
-
[1.6.4]Crashing but only on server with getIcon (arrayindexoutofbounds)
And if you put sanity checks in your getIcon function, you wouldn't have had the problem anyway.
-
Working on First Mod, Where do I find unused item IDs?
What version of Minecraft? If 1.6.4 (and below) don't worry about it, just use a config file like everyone else.
-
[1.6.4]How can I add a custom inventory GUI?
Listen for the openGUI event, then supply a different GUI if the one the game wants to open is the regular inventory.
-
[1.6.4]Crashing but only on server with getIcon (arrayindexoutofbounds)
Bingo. What you should do in your getIcon method is check for out of bounds and return a default icon (icons[0] is a good choice, so is null) just in case something like this happens.
-
[1.6.4]Setting a owner/owners of blocks
This will be of interest. https://github.com/Draco18s/Artifacts/blob/master/draco18s/artifacts/block/BlockPedestal.java https://github.com/Draco18s/Artifacts/blob/master/draco18s/artifacts/entity/TileEntityDisplayPedestal.java
-
[1.6.4]Crashing but only on server with getIcon (arrayindexoutofbounds)
Metadata ranges from 0 to 15. Your icon array ranges from 0 to 13. Take a WILD guess.
-
Nullpoint exception while creating block
Yes. Because all blocks are items. Ergo there needs to be more slots for items than for blocks.
-
[1.6.4] [RESOLVED] Replenishing hunger without using an ItemFood
EntityPlayer#getFoodStats()
-
Model Armor HelpMe !!
Please use a different image hosting service like http://tinypic.com/ or http://postimage.org/ Your native Thailandian one won't give me more than the top 20 pixels. In any case: you have not specified a texture file.
-
Model Armor HelpMe !!
You're doing something wrong.
-
[SOLVED][1.6.4]Helmet that adds Infinity to Items Help
You will also need to find a way to remove the enchantment when they're no longer holding it.
-
Integration with other mods without being a dependency
If you use any form of non-API checks to see if a mod is loaded before you call the API then it's not. https://github.com/Draco18s/Artifacts/blob/master/draco18s/artifacts/worldgen/PlaceTraps.java Check line 251.
-
[1.6.4]Multiple TickUpdates in One Block?
I don't think you're going to be able to do this.
-
custom sound problem
OH GOD WHY. Use this: par1World.playSoundEffect(x, y, z, "example:wand", volume, pitch); Try: event.manager.addSound("example:wand.ogg");
-
[1.6.4] Mob Names on Server Not Right
All language files are automatically loaded for you.
-
Multi-texture file model?
TexutreManager#bindTexture
-
Texture won't show.
Wow, that actually worked, thank you so much. Now does anyone know how to fix the names of the blocks and Items? Language files. Just create a file in /assets/lang/ called en_US.lang and put: nameYouSeeInMinecraft=NameYouWant
-
Rotate TileEntityModel
Ah yes. I tend to remember things in vernacular and use the IDE code hinting features to get the name I'm trying to use.
-
Add boolean to entity
You're going to need to use debug statements to figure out why. I can't help you do that.
-
Rotate TileEntityModel
Yes. And don't forget a push and pop matrix, if you don't already have one (you should).
-
Add boolean to entity
Probably because getNearestEntity() can't return null. If it fails to find a target that's not already targetted, it's going to return the last one it checked.
IPS spam blocked by CleanTalk.