Everything posted by Draco18s
-
[1.11.2] How do i add additional loot to vanilla chests
entry = isn't needed, you asked what went inside {entry} and I said "entry = " meaning "replace that bit that isn't code with this bit that is code.
-
[1.12.x/1.11.x] [UNSOLVED] Bounding Boxes IndexOutOfBoundsException
Write code to compute the bounds.
-
[1.10.2] [SOLVED] List of all Events??
Open your IDE Find any event you know Open its parent class Goto 2 until at the Event class Right click -> open type hierarchy
-
[1.11.2] How do i add additional loot to vanilla chests
entry = new LootEntryItem(item, weight, 1, <functions>, <conditions>, name);
-
[1.12.x/1.11.x] [UNSOLVED] Bounding Boxes IndexOutOfBoundsException
addCollisionBoxToList doesn't require that the boxes be contiguous. getBoundingBox is specifically a single cuboid. Think about the outline around Stairs vs. its actual collision hull. For your block you wouldn't need 16 AABBs for your bounding box...you'd need sixty four.
-
[1.12.x/1.11.x] [UNSOLVED] Bounding Boxes IndexOutOfBoundsException
You mean this declaration, right? protected static final AxisAlignedBB[] BOUNDING_BOXES = new AxisAlignedBB[] {new AxisAlignedBB(0.375D, 0.0D, 0.375D, 0.625D, 1.0D, 0.625D), new AxisAlignedBB(0.375D, 0.0D, 0.375D, 0.625D, 1.0D, 1.0D), new AxisAlignedBB(0.0D, 0.0D, 0.375D, 0.625D, 1.0D, 0.625D), new AxisAlignedBB(0.0D, 0.0D, 0.375D, 0.625D, 1.0D, 1.0D), new AxisAlignedBB(0.375D, 0.0D, 0.0D, 0.625D, 1.0D, 0.625D), new AxisAlignedBB(0.375D, 0.0D, 0.0D, 0.625D, 1.0D, 1.0D), new AxisAlignedBB(0.0D, 0.0D, 0.0D, 0.625D, 1.0D, 0.625D), new AxisAlignedBB(0.0D, 0.0D, 0.0D, 0.625D, 1.0D, 1.0D), new AxisAlignedBB(0.375D, 0.0D, 0.375D, 1.0D, 1.0D, 0.625D), new AxisAlignedBB(0.375D, 0.0D, 0.375D, 1.0D, 1.0D, 1.0D), new AxisAlignedBB(0.0D, 0.0D, 0.375D, 1.0D, 1.0D, 0.625D), new AxisAlignedBB(0.0D, 0.0D, 0.375D, 1.0D, 1.0D, 1.0D), new AxisAlignedBB(0.375D, 0.0D, 0.0D, 1.0D, 1.0D, 0.625D), new AxisAlignedBB(0.375D, 0.0D, 0.0D, 1.0D, 1.0D, 1.0D), new AxisAlignedBB(0.0D, 0.0D, 0.0D, 1.0D, 1.0D, 0.625D), new AxisAlignedBB(0.0D, 0.0D, 0.0D, 1.0D, 1.0D, 1.0D)}; Because that's a lot more than 6. Specifically, 16: 4 directions. 2^4. 16.
-
[1.11.2] How do i add additional loot to vanilla chests
You can also create your own loot conditions. e.g. I have this one in my code (registered here) which prevents loot drops when an entity is killed by Wither damage (which I use to kill animals that are dying of old age; the odds of wither damage from another source is low, but remains thematically appropriate). There's also loot functions. Handles things like metadata, stack count, enchantments (e.g. the Looting Enchantment Bonus). Creating the "add this to the loot pool" function in my LootUtils class was a pain in the arse.
-
[1.12.x/1.11.x] [UNSOLVED] Bounding Boxes IndexOutOfBoundsException
Then why the devil are you doing what you're doing?
-
[1.12.x/1.11.x] [UNSOLVED] Bounding Boxes IndexOutOfBoundsException
You're bitshifting the results. 0 and 1 are both false, so they aren't doing anything. 2 is true, so it bitshifts 1 << 2 (or 4) 3 and 4 are both false, so nothing 5 is then true, so it adds to the 4 the value 1 << 5 (or 32). However, you need to look at where this value is passed back to: an array. Of size 6. (You haven't shown us the declaration/definition of BB)
-
[SOLVED][1.12.2] Question about genPatches when contributing to Forge
Top of the workspace. GenPatches does a comparison between Clean and Forge.
-
[1.12.x/1.11.x] [UNSOLVED] Bounding Boxes IndexOutOfBoundsException
i <= CONNECTED.size() This is wrong.
- Anyone tried modding on Visual Studio Code?
-
[1.12] Registering entities
If your variables are untyped, it's going to assume you're passing a Render<? extends Entity> This one is not deprecated:
-
[1.12] Registering entities
There are two methods with the same name, use the not-deprecated one.
-
[1.12.2] Getting the other entity of a block [solved]
Every block handles this differently. Beds and doors use a HALF property, but there's no indication of which direction the other half is (doors know it's down, beds have a FACING). Mod blocks may not even have that information available. I know that my windmill involves 3 different blocks. The millstone has an ORIENTATION property, the Axel knows which direction to look in (away from the millstone) and the windvanes know that the core of the axel (the hub joint, farthest from the millstone, where all the winevanes connect) is in one of six locations. It just checks all six. It gains a property afterwards, but it's assigned by the hub for looks.
-
[1.10] Invisible water
No you didn't, you said, "i created a sphere for my block." You can use OBJ models as well as JSON. But how would I have known you hadn't seen it?
-
Grayscale
Not really. You'd have to replace the classes involved with new ones that implement IBlockColor.
-
[1.10] Invisible water
Given that you didn't say how you were drawing the block...because you supplied no code... How was I supposed to know that you were using a TESR for this?
-
Game freezes when event is fired
Your problem is that you're running a task that takes time to complete on the main thread. This is why Minecraft has a network thread.
-
[1.10] Invisible water
It's a vanilla bug https://bugs.mojang.com/browse/MC-9553
-
Render to texture -- where to start?
Thought XCW'd updated that recently. Maybe not.
-
Render to texture -- where to start?
Use this: https://mods.curse.com/mc-mods/minecraft/230541-lookingglass The api to handle the rendering is already built, it's amazing, it works across dimensions...you aren't going to get any better than that.
- Anyone tried modding on Visual Studio Code?
-
Anyone tried modding on Visual Studio Code?
IntelliJ isn't the only program that does it, I've run into a few others. But every time it's "undo, undo, undo...ok redo...fuck, why did that just delete a line? Oh, stupid keybinds. FINE, I GUESS I'LL RETYPE IT." I don't mind ctrl-shift-z being redo and not ctrl-y, it's the binding something destructive to ctrl-y that irks me. Yeah, just completely fuck with someone who's never used your software before so they can't fix the mistake because they didn't know what your keybinds were, that's just brilliant.
- Anyone tried modding on Visual Studio Code?
IPS spam blocked by CleanTalk.