-
[1.7.10][SOLVED]Rotate tileentity model
Alright, I'll take a note on that
-
[1.7.10][SOLVED]Rotate tileentity model
Thanks elix for forcing me to think harder Also, the adjust method is not functional, at least for me.
-
[1.7.10][SOLVED]Rotate tileentity model
I have it fixed now. I'm using GL11.glRotatef((meta - 1) * (-90), 0F, 1F, 0F); to rotate the model (I found out that last three params are for indicating on which axis I want to rotate)
-
[1.7.10][SOLVED]Rotate tileentity model
Yes, this class is copy-pasted. I have no previous experience with GL. Actually I have very little experience with Java in general. I know // is not for fun. I did not understand if "render section" was the whole method or some part of it. And the adjustRotatePivotViaMeta method seems to be not working at all. Even when I set the "meta" manually.
-
[1.7.10] How do I dropItem from the localized name?
Get your modid from a Reference class.
-
[1.7.10] How do I dropItem from the localized name?
You could make the config require baked_potato and the add minecraft: prefix. Then combine diesieben's and Anon's suggestions.
-
[1.7.10][SOLVED]Rotate tileentity model
I'm confused... Is this not working at all or I'm doing it wrong? Additional info: I use te.getWorldObj() to get world for adjust method Meta always returns 0 even if onBlockActivated in block class return the correct meta.
-
[1.7.10] How do I dropItem from the localized name?
I have two questions: 1) Do you have to use Localized name? 2) Is it always going to be baked potato? If not, use Items class to determine most of items. I would use this code. public CPDropItem(LivingDropsEvent event) { //I'm not using itemname //String itemname = "Baked Patato"; Item drop = (Item) Item.itemRegistry.getObject("baked_potato") event.entity.dropItem(drop, 1); }
-
[1.7.10][SOLVED]Rotate tileentity model
If the lack of replies if related to me not posting my code, here. TESR: Block:
-
[1.7.10][SOLVED]Rotate tileentity model
Hello, I have a tile entity with custom model done in Techne. I have everything else working quite good, but I want to be able to place it in different directions. I have my TESR copy-modifyed from http://www.minecraftforge.net/wiki/Rendering_a_Techne_Model_as_a_Block. But there's that private adjustRotatePivotViaMeta method which, as I understand, rotates it according to metadata. My question is, where do I call said method with adequate args?
-
[1.7.10]Handling item pickup in MP
Crap. Well that means I have wasted 2 weeks. Fuck.
-
[1.7.10]Handling item pickup in MP
I found https://github.com/coolAlias/Forge_Tutorials/blob/master/IExtendedEntityPropertiesTutorial.java tutorial, but it says that the server needs to have the mod installed too. Is there a way that does not require the server to have my mod? Cause I meant my mod as a tool or an utility mod.
-
[1.7.10]Handling item pickup in MP
Mkay, I have absolutely no clue on how to do that. I'll have a look around and will be back if I don't find anything.
-
[1.7.10]Handling item pickup in MP
Alright, is there a way somehow send the config to server or make the mod only and strictly dependant on local config?
-
[1.7.10]Handling item pickup in MP
a)In local config b)@SubscribeEvent and MinecraftForge.EVENT_BUS.register(new ItemPickupHandler()); in preInit Stage
IPS spam blocked by CleanTalk.