Everything posted by Draco18s
-
Tick Entity Crash
Complain to the mod author.
-
Modifying Forge/determining when an Enderman picks up a block
Yeah, there's no good way to detect this right now. Its based on several random variables and the EntityMobGriefingEvent simply determines whether or not the endermen are allowed to make that random check (which can still fail).
-
[1.16.3] Dedicated Server Crash on Start
By the way: This: And this: Do the exact same thing, just in a different way. @EventBusSubscriber also does this. Th only difference is that there are two different busses (the mod bus and the forge bus) and one of them is for FML events ("life cycle events" which are on the mod event bus) and the rest are for game events (the forge event bus). You should use two different classes for the two different types of events, separating out all the client stuff to another third (and possibly fourth) class. And personally I'd use the @EventBusSubscriber annotation, because then it's very easy to tell what bus a given set of events is for.
-
[1.16.3] Item registrations
You need to go into your FullSyringe class, go into the on-right-click method, and type: new ItemStack(ModItems.EMPTY_SYRINGE.get());
-
[1.16.3 or LATEST VERSION] how to emulate elytra light
Find the existing elytra math (I think it is in the LivingEntity class). Copy it. Create a player tick event handler (check phase). Paste code. You'd then have to do some fiddling to fix any syntax issues, but really that's about all you need to do.
-
[1.16.X] .notSolid() replaces .func_226896_b_()
We. The community applied the human readable name. Mojang had no part in it.
-
[1.16.1]how can I make a custom crating block?
You're looking at a SRG name, one that is autogenerated by the decompilation and deobfuscation process.
-
Delay explosion in forge? [any version]
Read this: https://mcforge.readthedocs.io/en/1.15.x/events/intro/
-
Delay explosion in forge? [any version]
Threads are never the correct solution. Do not use threads unless you know what you are doing, you do not know what you are doing.
-
Drop items on ground [SOLVED]
Pretty sure it doesn't. And the entity you need is an ItemEntity
-
Drop items on ground [SOLVED]
You need a new entity, because you want to add a new entity to the world.
-
[1.16.1]how can I make a custom crating block?
*Clicks on the repo root* https://github.com/TheGreyGhost/MinecraftByExample *Glances at readme...*
-
[1.16.3] Registering LootFunctionType and LootConditionType
Oops, you're right.
-
[1.16.3] Registering LootFunctionType and LootConditionType
"The guy who wrote this had to test it somehow! I wonder if he wrote any test code and where I might find it...maybe the Forge Github? Nah, couldn't be there, that would be dumb." https://github.com/MinecraftForge/MinecraftForge/blob/1.16.x/src/test/java/net/minecraftforge/debug/gameplay/loot/GlobalLootModifiersTest.java#L83
-
Custom Dirt Blocks 1.15.2?
Have you tried looking at the vanilla implementation? Its down around line 820 in Block.java and is really pretty straight forward.
-
How to modify the extension of forge mods ?
Why?
-
[1.16.3] Remove then add another item to inventory
onItemUseFinish's job is to change what item the player ends up with when the item is used. That's literally all it does.
-
Blockstate import doesnt work.
-
[1.15] Multi Line Text field
Having done some stuff previously, I thought a multi-line text field already existed. /me checks code Nope, apparently not. There's a lot of little things that you wouldn't normally think about that need to be adjusted. Like selection start and end positions...
-
(1.16.1).setLightLevel and .setRequiresTool gives error Cannot resolve method 'setLightLevel' in 'Properties'
Every class, method, field, parameter, and local variable has 4 names: Notch Names (these are what the game is originally programmed in). We do not have these for most things, Mojang is (supposedly?) publishing a deobf map, but I don't think it is in use by Forge yet. Obfuscated Names (these are what you would see if you opened Minecraft's source in a decompiler). a, aa, ab, abb, etc. It is unreadable. SRG Names (these are the first step in deobfuscation, machine translation from the obfuscated source to a consistent mapping). Not human readable, but the same method will always deobf to the same SRG name even as things change and get new Obfuscated names. MCP Names (these are the human readable ones). These take time and constant effort to map.
-
[1.16] Creating a W value alongside X, Y, and Z
The Miegakure team had to write a custom rendering engine for it. Have fun.
-
How to Make a Hypixel Skyblock Mod [API]
Hypixel does not run on Forge, sooo...I'm not sure why you're asking here.
-
Get position of block on screen
The block outline code that already exists might be useful. You could also draw z-test-off quads in world space easily.
-
Get position of block on screen
Yeah, converting from 3D space to Screen Space is annoying as hell. I did the reverse in Unity a while back, but there's a bunch of Unity specific helper methods and objects involved. Basically it involves doing all of the camera transform matrix math yourself. And that math is Not Fun.
-
I have a friend who wants to make a mod that places blocks beneath your feet
More like that method (and that class!) are never referenced anywhere else.
IPS spam blocked by CleanTalk.