Everything posted by Draco18s
-
Setting a Llama as controllable
Is it public? Change it. Is it private? Use reflection.
-
Event to close GUI if clicked outside?
I don't think MC is set up to do that, at least, not easily. None of vanilla's guis close in this manner, it would be jarring for the player to have that happen.
- First Mod Issues
-
First Mod Issues
Right click -> Refactor -> Rename
-
Teleportation To anther age crashes game
True, it hasn't been. XCompWiz has been busy with his actual job.
-
Teleportation To anther age crashes game
(I actually copied his code into my IDE to test it last night, so yes, actually I do know that it's that, but don't tell him--also, it matches the behavior of "the game crashes and when I log back in I've been teleported," but you're right, we can't actually tell from what he's posted what line 50 is.)
-
Detect entity you're looking at
*Right clicks air* *Crashes game*
-
[1.12] How to use Variants in Smelting Recipes
Same. Also, I see redstone ore (repeaters, lamps, etc) is turning into "one block with two states" finally.
-
Teleportation To anther age crashes game
While true, it is surprisingly not the problem. playerIn.getServer() Returns null on the client. Unsurprisingly. ItemLinkingBook Are you working on a Myst mod? Because that exists and is probably way better than anything you could accomplish.
-
Directional Blocks w/ Blockstates
Sigh. EnumFacing.getHorizontal(meta)
-
Directional Blocks w/ Blockstates
@Override public IBlockState getStateFromMeta(int meta) { return getDefaultState().withProperty(FACING, meta == 0 ? EnumFacing.SOUTH : EnumFacing.EAST); } What happens when the FACING value (when saved, via getMetaFromState) was NORTH?
-
[1.12] Reducing Item Durability with onItemRightClick
No, bad modder, no cookie. Items are singletons, there exists exactly one instance of this class, and right now in your tests, the code is being called twice: Once on the server thread Once on the client thread And each time it's deducting 1 from your counter (1 + 1 = 2). If you want to store information on a stack (like....number of charges) you need to use metadata or capabilities on the itemstack.
-
Issues with "gradlew setupDecompWorkplace"
No. Forge / Minecraft do not work on Java 9 at all, stop, end, period.
-
[SOLVED] [1.12.2] Cancel updateTick onNeighborChange
#ThatWasn'tAllOfYourCode I wanted to see the whole class. Namely to see... if the class overrode onNeighborChanged of if the class exteneded another class that does
-
[SOLVED] [1.12.2] Cancel updateTick onNeighborChange
Show your code
-
Teleportation To anther age crashes game
Null pointers are easy to resolve... If you know where they are. You did not post the crash error itself, therefore I cannot help you.
-
[1.12] How to use Variants in Smelting Recipes
Well, I'm sure there will. Block metadata still exists, its just under the abstraction of IBlockStates. But in terms of us-as-modders not having to deal with it all the time, sure.
-
Regarding ItemStackHandler
...and much of the container code that exists (e.g. the vanilla wrapper, many mod container's Transfer Stack methods) blindly goes "does this go in slot 0? Slot 1? Slot 2?" until it runs out of things to insert or places TO insert them. Why does it do this blindly? Because programming a blind insertion is easier: you don't have to look at any slot twice in order to guarantee that the insert succeeds.
-
Trouble with rendering Item Model
I haven't messed with using OBJ models myself, try searching the forums for OBjLoader
-
Trouble with rendering Item Model
I believe it is used instead of ModelLoader.setCustomModelResourceLocation.
-
Trouble with rendering Item Model
Have you told Minecraft that you need an OBJ model? OBjLoader::loadModel
-
Directional Blocks w/ Blockstates
You want your block to place down with the facing based on which direction the player is looking? Go look at BlockFurnace to see how that block does it. Just adding the facing state value doesn't magically make the block place down with a specific state. Ladders are horizontal blocks too, and those face a direction based on what block they're placed on. ....what versions have you modded for before? Yes, but no, but yes, but no. If the block at the position is already the block being placed, then all that changes is the state (the metadata). If not, then it becomes that block too. There is not. If there was, the game would complain about it. Or maybe there is, because your block is still a black and purple cube, but I can tell that this is not the problem you're concerned about at the moment.
-
[1.12.2] [Solved] Event for connect to singlerplayer world, server world
I have a feeling he wants to create a button on the main menu that will send a message to a particular server, and if the admin of that server replies with a "yes" then the client automatically connects to that server.
-
Directional Blocks w/ Blockstates
What do you mean "it does nothing"? Do you remember world.setBlockWithMetadata()? That's what setBlockState does (only there's no longer a "metadataless" version; setBlock).
-
[SOLVED] Troubles saving WorldData by appending compounds in taglist
Like I said, minimum logging levels. Debug would be below it, Warn above it.
IPS spam blocked by CleanTalk.