Everything posted by Draco18s
-
Forums Migration/Upgrade
There is no such thing as "perfect security." Actually there is. It's called "unplugging it from the internet and turning it off."
-
[1.11] Which sub-event would I use?
Yes. Potions use an NBT "Potion" tag to indicate the potion type. http://minecraft.gamepedia.com/Potion#Data_values
-
[1.11.2] Blockstates for Item
Blockstates != Models.
-
[1.11.2] Blockstates for Item
Blockstates don't solve the models problem. All it does is solve the mapping (the Cartesian product of multiple properties) from state to model. If you want to do models, you're going to need to make your own IModel (possibly with some other interfaces, like IPerspectiveAwareModel) implementation.
-
[1.11.2] How to take over a living entity?
See if you can find the source for the Morph Mod
-
Forums Migration/Upgrade
Because Windows 7 is still better than literally any other version of Windows?
-
Forums Migration/Upgrade
Another issue. If you try to select a part of a quoted post that contains an @mention and delete it, the wrong stuff gets deleted: https://dl.dropboxusercontent.com/u/7950499/2017-03-02 12-54-33.mp4
-
Item Model Rendering Question
I was referring to the bit about Blocks having rendering modes: CUTOUT, TRANSPARENT, etc. But if you're right about that not affecting items, then my bad.
-
[1.11.2] Blockstates for Item
Ok, seriously, this isn't that hard. And I'm not always here. Your posts two hours ago I was asleep. This is the important part: You need to pass a mesh definition to the ModelBakery: https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L123 Because of how I want my code set up I created an interface to get this information from an item rather than creating it at the point of registration. What's an item mesh definition? https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/industry/item/ItemCastingMold.java#L81 That. That is a vanilla class/interface. And everything that happens inside is is the part you will need to write yourself. IItemWithMeshDefinition is the only thing I made (plus how to turn my NBT data into a model resource location), you don't have to recreate it if you don't want to.
-
[Solved] Client-side event when joining a server
What are you sending a packet for? There's already an event on the server for when a player joins: why is that not sufficient?
-
Item Model Rendering Question
The beacon is a block and blocks have Special Rules for rendering. I'm not sure you can render the same thing with a regular item, as Transparency is Complicated.
-
1.7.10 getblock to 1.11 BlockPos in for loop
world.getBlockState() returns an IBlockState. If you want the Block from this, you need to do .getBlock()
-
[1.11.2] Blockstates for Item
It was an interface I created to handle the types of operations I was doing.
-
[1.11.2] Blockstates for Item
It's for passing in a resource location to the ModelBakery: ModelBakery.registerItemVariants((Item)item, meshDef.getModelLocation(variantStack)); And here's the various models: https://github.com/Draco18s/ReasonableRealism/tree/master/src/main/resources/assets/expindustry/models/item
-
[1.10.2] Hanging Entity help
Congrats, you use system.out and passed in a complex object type which doesn't override ToString to return a meaningful value. You're looking at the string representation of a pointer. Please stop Cargo Cult-ing. You need to actually do something with the m in order to get any data out of it. Go look at the class (right click -> jump to declaration on the variable's Type).
-
Mofify Forge server.jar files?
I won't be giving you an more information, because the method that exists is built into the Java framework and mucking about with it and not knowing what you're doing means you're going to do it wrong. Even if it does compile and run without problems you'd still be doing it wrong and you'll end up incompatible with some mod somewhere because of some random thing you didn't account for. Like some other dickhead also mucking about doing the same thing you are for some reason. Then the game crashes and users come here and complain to Forge and it isn't Forge's problem and no one can slap you up side the head for doing something dumb because there's no indication in the crash report that your mod modified things. TL;DR just don't.
-
[1.10.2] OBJ Model is only one color
Are they the single color of the pixel in the top-left of your texture? (or another corner) If so, your UV coordinates aren't set up.
-
[1.11.2] Blockstates for Item
Oh. No, what I linked won't work for you. What I linked is only for metadata. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L120 https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/industry/item/ItemCastingMold.java#L79
-
Automatically created textures
Search for older threads, "TextureAtlasSprite" That'd be the way to do it.
-
[1.11.2] Blockstates for Item
Basically, yes. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L161-L168
-
What do I need to know before I try to make a power system
Note: Forge has an energy capability system already set up for use, you just need to implement it.
-
My Mod isn't showing up whenever I run the Forge Client
- ExplodingArrows
That is not what that document says. It is saying that EntityJoinWorldEvent extends EntityEvent already, not that YOU need to extend EntityEvent in order to use it.- [1.10.2] [SOLVED] Apply damage when colliding with block
Make the block shorter than 1 block tall.- ExplodingArrows
What documentation where? - ExplodingArrows
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.