Everything posted by HoBoS_TaCo
-
[Solved]Re-Generating chest items + block onUpdate()
updateTick() is client-side only; it says so in the annotations. You can just use your chests tile entity onUpdate() instead if it's a custom tile entity. I've been using TileEntityChest, it looks like adding a custom tile entity will do the trick. Thanks to both of you.
-
[Solved]Re-Generating chest items + block onUpdate()
I've been trying to get my chest to regenerate items for a while and i'm having a problem. I have the generation code completed but I can figure out how to run the block's onUpdate() method on every tick. Is there a way to get every instance of the block's onUpdate() to run every tick or should I look in a different direction? If anyone can point me in the right direction it'll be appreciated.
-
META-INF
Why would Forge include it if it wasn't necessary?
-
EntityRegistry not registering entities.
If I were you I would use: EntityRegistry.registerGlobalEntityID(EntityDigimob.class, "EntityDigimob", EntityRegistry.findGlobalUniqueEntityId(), 1, 2); //Last 2 digits are spawn egg colours, remove them if you don't want spawn eggs. EntityRegistry.addSpawn(EntityDigimob.class, 25, 1, 1, EnumCreatureType.creature, WorldType.base12Biomes);
-
Need Village help
Try VillagerRegistry.addExtraVillageComponents(ArrayList components, Random random, int i)
-
Minecraft black screen
Read the first point in Over-Excessively Asked Questions: Read me before posting! Yes, that means YOU!
-
How do I get my mod compiled and ready for usage?
Check the reobf folder for the class files.
-
How do I get my mod compiled and ready for usage?
Run the reobfuscate.sh (or .bat) to create the needed class files.
-
Better than an ore dictionary
Why doesn't someone just make a mod that adds ores that all mods could use? Otherwise you could just use Universal (Ultimate? U something) Electricity, it adds a few.
-
Forge Changelog is incorrect
I know and I use github as well for the detail. I was just pointing this out.
-
Forge Changelog is incorrect
The latest build shown on the forge changelog is one behind the changelog version. For example log #399 shows the changes for #398.
-
How to make a custom mob hold a item
private static final ItemStack defaultHeldItem = new ItemStack(Item.swordStone, 1); @Override public ItemStack getHeldItem() { return defaultHeldItem; }
- Invisible Arrows
-
render new in game Gui elements
Yes.
-
Invisible Arrows
Did you set it to render the arrow like you would render mobs?
-
FATAL FML ERROR
You can find the error in capitals in the middle of your log. Did you even read it?
-
How to add code to base files without changing them
You could use a tick handler and render up the buttons when the correct GuiScreen is shown.
-
Why use an mcmod.info file when data could be included in the code?
I had a mess around with it, also with DummyContainer, and didn't have much luck. Ahh. Do you have any ideas on how I would include the metadata in the code anyway?
-
Why use an mcmod.info file when data could be included in the code?
I'm not sure if this has been asked before but i'm curious to why mcmod.info files are needed in mods when it would be more convenient to code it directly into the mod?
-
[Solved]Adding spawn eggs
Register the entity with: EntityRegistry.registerGlobalEntityID(Class <? extends Entity > entityClass, String entityName, int id, int backgroundEggColour, int foregroundEggColour)
-
Mac: Need help getting started with coding!!
To run shell files on a mac you use: cd <folder with .sh files> then bash <shell file> It should look something like this: cd /Users/Bob/Minecraft/mcp72 bash install.sh
-
i have a mod request and no I am not a modder
Finite Liquid.
-
Fatal error starting up minecraft and FML
Don't forget the line 2012-11-18 23:08:46 [sTDOUT] A CRITICAL PROBLEM OCCURED INITIALIZING MINECRAFT - LIKELY YOU HAVE AN INCORRECT VERSION FOR THIS FML Did you even read the error log?
-
Entities will spawn on the client but not on the server
For some reason my entities spawn fine on the client but on a server they don't spawn properly. On my servers they spawn normally in a small radius around the spawn but as I move away they stop spawning. I register my entities with: EntityRegistry.addSpawn(EntityZombieDayZ.class, 200, 1, 4, EnumCreatureType.creature, DayZ.dayzForest, DayZ.dayzPlains, DayZ.dayzRiver); Anyone have an idea why this is occurring?
-
Register blocks while loading (or joining) a world
With the use of NBT tags and metadata there should be a way to do it on generation. What exactly is the mod supposed to do and what properties are randomly generated?
IPS spam blocked by CleanTalk.