Everything posted by Animefan8888
-
[1.10.2] Ragdoll type entity?
What is the problem now?
-
Wierd issue with registering ItemBlocks in 1.10
There is Item.getItemFromBlock(block)
-
Wierd issue with registering ItemBlocks in 1.10
Why did you create an ItemBlock map when you could just have a block map then when registering create the instance. Look at my block tutorial if you want i do something similar.
-
Saving a list of BlockEvents
There is no direct way of saving BlockEvents or any class like that, because it is not a base field like ints and doubles are. You will have to save the data yourself. Meaning you need the blocks registryName, any blockstate information ie metadata or its properties, the position, and the type of event. Use WorldSavedData to save it to the world or alternatively an event for when the world loads/saves or capabilites for players.
-
Saving a list of BlockEvents
Grab the blockstate and handle the data from that or in some cases where they override getStateFromMeta you could just write the meta then use that method to grab the correct blockstate.
-
Saving a list of BlockEvents
You only need to save the pertinent data(the block, the position and whether it is breaking or placing the block) which means you need to write that data to a text file or some other type of file then parse the fata when loading.
-
Edit or override vanilla inventory
Yes there is, but it will not work for the player inventory, or at least not how you expect. As far as the server is concerned you are always interacting with a Container, if it's not a chest or something you are interacting with the inventory container. The server does not actually have any idea whether you are currently actually looking at the inventory screen or not. That is actually good to know, thanks for the information.
-
[1.9.4] Overriding the EntityPlayer class.
You would not override the EntityPlayer class you would need to use Capabilities and subscribe to the RenderPlayerEvent.Pre (i think it would be Pre) and override the rendering there.
-
Edit or override vanilla inventory
I believe there is a OpenContainerEvent or similar name same function. *Edit You can not use OpenContainerEvent as for why Diesieben explains just below this.
-
[1.8] Item Model does not load
You should post updated code and the log if there are any errors.
-
[1.7.10] launcher to start game without showing main menu
First off wrong forum for this as it would not use forge and 1.7 is no longer supported on this forum.
-
[1.10.2] Where Have Vanilla Assets Gone?
I always open the jar file to look at them and have extracted them from timw to time using winrar or 7-zip
-
[1.8.9] making blocks place based on orientation
1) I will look into removing the long decimals after I can 2 to stop happening. 2) Minecraft no longer loads, I should have been more clear sorry about that. 3) I will make the mod in 1.10 but I want to get the basic features of my down first before I start porting to new versions, this means play testing with other mods and the version that I play right now is 1.8.9 because haven't had the time to go though what mods I need to have and update. Minecraft no longer starts...how do we help if we do not have the crash report?
-
[1.10.2][UNSOLVED] Registering EntityItems with Forge
Since I've tried setting the motion and all that in the constructor and it didn't work (or at least I don't know how to make it work), could you please explain to me how I would manually save and load the entity from NBT to and from the world (to achieve basically the same thing as the registration does, just without the whole 'setting up the motion and fixing the weird teleportation glitch' shenanigans). Also where and how would you set the basic motion to correct this? Because I've tried overriding the dropBlockAsItemWithChance and implementing my own version of spawnAsEntity where I only changed the entity construction invocation, and I also tried copying the motion formation code from several sources and placing it in createNewEntity in my custom item class and nothing worked. Does your EntityItem extend EntityItem?
-
[1.10.2] TE rendering update
Did you override getUpdatePacket(...) and handleUpdatePacket(...) or something like that.
-
[1.10.2] TE rendering update
You need to sync the inventory using markDirty() meaning call markDirty() after removing/adding the item.
-
[1.8] [Solved] methods #onEntityWalking #onEntityCollideWithBlock
It may have something to do with canCollideCheck(...)
-
[1.7.10] IMessage Event?
1.7 is no longer supported here, once a moderator sees this thread it will be locked and you will be asked to update, so just update.
-
[1.10.2][UNSOLVED] Registering EntityItems with Forge
I beleive you want to copy the motion of the entity aswell as the positions.
-
[1.10.2] [Solved] Lines render black in the world
Instead use the DrawBlockHighlightEvent.
-
[1.10] Glowing effect client-side?
You will have to render it yourself then using RenderPlayerEvent.Pre
-
WorldGend Block Replacment 1.10
Do you want to replace all coal ore o just some coal ore?
-
[1.10] Glowing effect client-side?
Look at what getting hit by a spectral arrow does then only do that client side on the client you want. Or you could just manually draw the same effect when your condition is met.
-
[1.8] Item Model does not load
You shoudl be using ModelLoader.setCustomModelResourceLocation(...) instead of the ItemModelMesher.register(...) and it belongs in preInit.
-
[1.8] Item Model does not load
Add an inventory tag ie "inventory": "modid:texture location"
IPS spam blocked by CleanTalk.