-
Posts
45 -
Joined
-
Last visited
Posts posted by Otis Goodman
-
-
2 hours ago, diesieben07 said:
- You cannot do this. Data like that must be stored in the ItemStack (like you already do). You cannot store it in the Item instance in any way.
- You cannot compare strings using ==.
- Use TextComponentTranslation instead of TextComponentString + I18n. Otherwise you are translating on the server and you will always get English.
- You cannot compare ItemStacks using ==.
Thanks that helped what is the best way to compare strings and item stacks?
-
The NBT problem is fixed but I have another.
I am not sure if my if statement that checks if the player is holding the shout book is working, can someone take a look and correct me if I am wrong.
Shout Book Item Class : https://gist.github.com/OtisGoodman/96da24295c450bc02f4d58890ef60faf
Shout Set Book Class: https://gist.github.com/OtisGoodman/57480c48b4dc516cb11bf4dad7a353a5
-
-
1 hour ago, diesieben07 said:
Okay, you just vomited a huge chunk of code into gists without even enabling syntax-highlighting.
Please, at the very least, explain what your issue is, except "troubles with many idk things".
2Your right and I am sorry.
I am trying to use ShoutSetBook code to change the NBT of the ShoutBook item so that it runs the shout by right-clicking but, I can't seem to get the shout to cast and I don't know what's wrong.
I hope that explains that better.
-
I am trying to make a command thing that edits NBT on an item and changes how the item functions. This is really hard to explain can someone take a look at this?
https://gist.github.com/OtisGoodman/96da24295c450bc02f4d58890ef60faf
https://gist.github.com/OtisGoodman/57480c48b4dc516cb11bf4dad7a353a5
https://gist.github.com/OtisGoodman/487e771261a107a451c20d97f7712504
https://gist.github.com/OtisGoodman/eededaa5f545629153278e8e58ce3027
-
ok thanks.
-
addSlotToContainer
and I want to make a slot in order for something to extend slot the slot methods needs and Iinventory too.
-
The method
-
I was trying custom slots that only fit certain items and it says that requires an IInventory.
Is there a better way to do slots that fit sertan items?
-
What I am trying to make a gui but I need an Iinvintory when I register it and I am not sure what I should use. so I was wondering where this code is in valnilla src or if it even is there @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { if(ID == QCInfo.SMOKERID) return new GuiSmoker(player.inventory, (TileSmoker),INV, world.getTileEntity(new BlockPos(x,y,z))); return null; }
-
What class are all the vanilla guis registered?
-
Got It thx
-
is help still required?
-
Where Do I register my entity models so that they work on with a server?
I currently have them in the preinit event but that crashes my test server.
I have tried doing something like this but it makes the entities look like white soccer pylons when I play on a server.
Can I get some help?
@SideOnly(Side.CLIENT) public static void clientRegisters (){ RenderHandler.registerEntityRender(); } @Mod.EventHandler public static void preInit(FMLPreInitializationEvent event){ RenderHandler.registerEntityRender(); }
-
also, It could just be that I don't know enough Java but I can't quite seem to get the classes thing to work.
-
so how do I reference the stuff within the other mods using the ModProxyImpl?
-
I did not completely get what he was saying.
And had trouble understanding what cadiboo said.
-
like inport classes from the mod
-
Is it pausable to check if a mod is installed if true then import x from other mod?
-
Is there some sort of example for bolth of those?
-
I am trying to do some integration with other mods but I ran into a problem.
I don't know how to add integration with a mod without compiling it.
What I am trying to do is check if the integrated mod is installed then run code referencing classes from the mod.
Can I get some guidance?
~
Otis
-
can you explain further?
-
Does anyone know how to damage an Item instead of consuming it during crafting?
Example: IC2 when you craft iron and a hammer you get plates and the hammer gets damaged.
Thanks
~
Otis
-
Troubles With Many Nbt/Idk Things
in Modder Support
Posted
Ok, nearly working my last problem is when I right click on the book the shout cast's twice.