Everything posted by Draco18s
-
[1.12.2] DoubleBlockPlant not rendering (black and purple boxes)
If you're going to do that... Move your enum variant and definitions into the tomato class. You want a clean double plant class? Then remove all of the specific stuff from it. Also AH HAHAHAHA
-
[1.12.2] Setting a delay for onItemRightClicked
Better idea, store the world time and compare. Modifying an item's NBT data every frame cause the client to think you have a new item and play the re-equip item animation.
-
[1.12.2] DoubleBlockPlant not rendering (black and purple boxes)
There are still some additional functions you need from BlockDoublePlant: onBlockPlacedBy (yours is wrong), canPlaceBlockAt, and onBlockHarvested and you need to call setDefaultState in the constructor (look at BlockDoublePlant) Optionally you may also want to include: isReplaceable, getItemDropped (yours differs), and removedByPlayer
-
[1.12.2] Models / Texture on wrong block [SOLVED]
Like I said, find another hobby. Being a programmer professionally, there is certainly a degree of knowing libraries and APIs, but it is still about problem solving. I can't add two numbers together to save my life (no joke, I just asked wolfram alpha to do some polynomial multiplication for me), but I still need to know the process, the reason why I need to add two numbers and not multiply them, or what a dot product is vs. a cross product. Sure, I might just be gluing a bunch of tools together to get the result I want, but I still need to know which tools to glue together and in what order. And that is problem solving. And you know what else I have to do? Recognize when an API or library has changed and made one method out dated and replaced it with a better, more flexible way of doing things. And that's what Minecraft did with the JSON model system: models can now be defined by resource packs, not just textures. Recipes too, once data-packs are finalized. Doing that requires changing how the system works, but the end result is far and above worth the effort that it costs us modders. What did this guy say? Oh right:
-
How do i make a light source block?
-
How do i make a light source block?
No. You already have it. I even told you how to find it. Go fucking look at it.
-
[1.12.2] DoubleBlockPlant not rendering (black and purple boxes)
Jesus mother fucking christ on a crutch. You do know how to create your own variant blocks, yes? createBlockState, getMetaFromState, and getStateFromMeta?
-
How do i make a light source block?
-
[SOLVED] TESR - rotations
Feel free to read up: https://en.wikipedia.org/wiki/Quaternion This is expected for one of two reasons: 1) GL deals with rotation as a quaternion and when you make an adjustment in Euler, the end result is not neccessarily the same Euler (to avoid gimbal lock) 2) Rotation around a rotated axis changes all of the Euler values from a non-rotated reference frame.
-
[1.12.2] DoubleBlockPlant not rendering (black and purple boxes)
checkAndDropBlock and canBlockStay. The class is only 336 lines long and 26 methods, it shouldn't have been that hard to find.
-
[1.12.2] Models / Texture on wrong block [SOLVED]
Programming is not for you. Programming is all about making your own Advanced level 5D sodoku/rubiks/crossword puzzle hybrids and then solving them. If this makes you frustrated and angry, then you need to find some other hobby.
-
Help with inventory syncing
Use capabilities.
-
WorlToScreen
You might have some luck in looking into the code Vanilla uses to render name tags.
-
Getting an item's lure and name from getDataManager().get
Lore. L-O-R-E. Also more correctly called "tooltip information". Lure is something else entirely.
-
[1.12.2] DoubleBlockPlant not rendering (black and purple boxes)
Look at what BlockDoublePlant does to make that happen.
-
Getting an item's lure and name from getDataManager().get
...what?
-
[1.12.2] DoubleBlockPlant not rendering (black and purple boxes)
BlockDoublePlant It contains a variant you don't want, don't need, and is fucking up your ability to create a valid blockstate file.
-
Cannot Register More Than One Texture With Item 1.12
Don't do that. Do this: new ModelResourceLocation(FastCobbleItem.getRegistryName().toString(),"inventory") Problematic Code #1 Not visible in your code, but worth checking: #7, #10 As to your actual problem: I can't actually find your problem in your post.
-
[1.12.2] Prevent sand/gravel blocks from falling
Overriding items is an intended feature but only one mod can override any given item. It's a necessary sacrifice.
-
[UNSOLVED]Large amount of mobs?
Uh...duh? When you buy more socks, the odds that you grab a white one out of your sock drawer at random changes. Vanilla doesn't want to spawn more total mobs as the variety increases (otherwise you reach a hyperbolic example of a billion different mobs and vanilla insures that at least one of each is spawened at any given time, making it impossible to move without running into something) so the actual percentage chance goes down.
-
How does forge work?
I renamed a parameter in a function once. I'd have done it more, but I forgot the syntax MCPBot uses to override the protections on letting people rename anything (as you can't edit the javadoc without said override).
-
[SOLVED] TESR - rotations
I think your problem here is that rotations are fundamentally a 4-axis object and you're trying to piecemeal it with three. Yes, Euler Angles are a Thing, but they suffer from gimbal lock. This is the closest thing I can find that has the right math: https://stackoverflow.com/questions/14720264/create-a-rotation-matrix-from-a-position-and-a-look-at-position
-
How to check if block can hold items
I'd assumed it was to query whether or not a cap existed, and if so, get the cap. Hence my lazy-programmer implementation of has() being return get() != null
-
[1.12.2] DoubleBlockPlant not rendering (black and purple boxes)
This is because you're not overriding getSubItems, but a parent class is, providing variants you don't want. Every single one of your model problems is likely also related to that fact. Stop extending that class. (You also didn't do anything about 2,3,and 4 in my bullet list, but whatever)
-
[1.12.2] DoubleBlockPlant not rendering (black and purple boxes)
Where do you put other client-side-only code?
IPS spam blocked by CleanTalk.