-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
Fatally missing registry entries
Animefan8888 replied to iidivine4112's topic in Support & Bug Reports
Anything you changed on the server must also be changed on the client. Config files, added/removed mods, etc. -
[1.14.4](Solved) Get position offset by axis
Animefan8888 replied to Brbcode's topic in Modder Support
No there is no short way to achieve this, You'll either have to use an if statement or a switch statement. -
I assume you are a developer of a mod. You posted this on the wrong subforum. Can you elaborate more on what you are trying to do?
-
Item NBT not syncing in Creative mode for connected users
Animefan8888 replied to stepsword's topic in Modder Support
This won't even compile so I definitely didn't mean anything like that.Just don't override getNBTShareTag or getShareTag. That way all of the NBT will be sent to the client. Then you can override readNBTShareTag and use it to update your ItemStack's capability. -
Item NBT not syncing in Creative mode for connected users
Animefan8888 replied to stepsword's topic in Modder Support
The solution to your problem is to not modify the NBTTagCompound in getShareTag. Just send all of the data. There was a PR here, but it seems to have been forgotten about. Maybe making a comment on the PR and tagging Mezz in it will bring it back to their attention. Though the problem isn't that big of one, because in most cases creative mode won't be used. -
[1.14.4][SOLVED] request server side data for gui
Animefan8888 replied to andGarrett's topic in Modder Support
Screens are separate for each player and so are containers I think. No because you would be getting it from the client player. Sync the specific data to the client whenever it changes if it can change while in the container, or if it can't change when in the container sync it when the container opens. With your own packet. -
This will crash the dedicated server, since the function you are calling is marked @SideOnly(Side.CLIENT) What you have to do is copy what it does inside the method. Yes the fact that it runs twice would be a basic forge concept, but that crash is something you could have solved yourself then came to the conclusion that it runs twice... Also it would be basic Java concept to check if something is an instanceof "ClassName" before you cast to it. You don't just willy-nilly cast one thing to another. A RayTraceContext contains all the information to perform a ray trace. It knows if you want it to consider fluids, along what vector do I ray trace for(vec3d->vec3d2).
-
That's what you use a Capability for...NBT is only used to save data to the disk. It shouldn't be used to store and access values. Don't do this. Attach a capability to the player to store the data you want on the player. Then use EntityPlayer#getCapability to get your capability instance and modify and access the data from there.
-
I can't say that Is a minecraft forge related problem. You can change those class names to anything else and it would still be the same problem. Also
-
-Solved- [1.12.2] Removing Item from Slot resets the Tile Entity
Animefan8888 replied to Haoming's topic in Modder Support
The tutorial must have been severely outdated. It should look something like this. Then use the IItemHandler instance(items) to insert and extract items from specific slots. private IItemHandler items = new ItemStackHandler(numberOfSlots); public boolean hasCapability(Capability<?> cap, EnumFacing facing) { return cap == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY ? true : super.hasCapability(cap, facing); } public <T> T getCapability(Capability<T> cap, EnumFacing facing) { if (cap == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) return CapabilityItemHandler.ITEM_HANDLER_CAPABILITY.cast(items); return super.getCapability(cap, facing); } -
-Solved- [1.12.2] Removing Item from Slot resets the Tile Entity
Animefan8888 replied to Haoming's topic in Modder Support
Don't use this create an IItemHandler instance in your TileEntity and return it in the getCapability(Capability, EnumFacing) method, -
[1.14.4] Making a Trident like item
Animefan8888 replied to MineModder2000's topic in Modder Support
I don't understand what you mean by not working. What did you expect to happen vs what is happening? What portion of code is it we are talking about. -
[1.14.4] Making a Trident like item
Animefan8888 replied to MineModder2000's topic in Modder Support
A unique registry name. What you have is fine. I believe it is used for saving to disk, but I could be wrong. -
[1.14.4] Making a Trident like item
Animefan8888 replied to MineModder2000's topic in Modder Support
Of course its not correct you never reference your capability on the player. -
That's a Java error if you don't know how to solve that look it up elsewhere we are not here to teach basic Java concepts.
-
No it is not. Just send them as raw types. int, double, float ect. No use the @ObjectHolder annotation to give them values.
-
ServerWorld only exists on the server and it represents a world on the server. Cast world to ServerWorld. Look up what Ray Tracing does.
-
How can i add multiple biomes to one worldType?
Animefan8888 replied to Schleim_time's topic in Modder Support
Create your own BiomeProvider instance. -
registerItems(event) event,getRegistry().registerAll( new Item(...), new Item(...), .... ); You've got two ways to initialize the fields however you can use ObjectHolder annotation. Or you can just do SOME_ITEM = new Item instead of just new Item.
-
Use the EntityJoinWorldEvent to change the Goals in MobEntity#goalSelector.
- 1 reply
-
- 1
-
-
[1.12] Adding custom item to existing tab and more
Animefan8888 replied to Armadelix's topic in Modder Support
It can if you get the JSON Editor plugin for eclipse from the Market Place. Help -> Eclipse Marketplace. Then search Json. -
Unexpected software install with no delete button
Animefan8888 replied to Zonealpha's topic in Support & Bug Reports
Uninstall it like you would any other program. Control Panel -> uninstall a program Only download forge from here. Also only download mods from reputable sources, places like curse forge or either the Minecraft Forums by the mod developer or here by the mod developer. -
How much RAM did you dedicate to Minecraft.
-
[1.12] Adding custom item to existing tab and more
Animefan8888 replied to Armadelix's topic in Modder Support
You're missing a "}"at the end of your file.