-
Posts
16559 -
Joined
-
Last visited
-
Days Won
156
Everything posted by Draco18s
-
Need Help With Deferred Register (Forge 1.15.2)
Draco18s replied to MarsKittenPro's topic in Modder Support
Look at the javadoc. Its super blatantly obvious what you should do. -
[1.16.1] Block loot table, multiple possible drops + silk touch
Draco18s replied to VaalAlves's topic in Modder Support
The weight, by the way on that 1-of-3 thing, doesn't have to sum to 100. Its not a percentage, its a weight. https://www.rubyguides.com/2016/05/weighted-random-numbers/ Not sure why the silk touch isn't working -
Need Help With Render Overlay Crash Report (forge 1.15.2)
Draco18s replied to MarsKittenPro's topic in Modder Support
MacOS creates files you don't want. Search the forum for .DS_Store:sounds.json and you'll find plenty of threads about it. -
👍 Sure, I was just saying that because the builtin was being bad, that gave me something to work with to try and write the function myself. A starting point as it were. Success! Calculating the angle myself (ok, I used a builtin) based on the object's position and the camera's position (with the same height to avoid some oddities with things being directly ahead/behind) works perfectly.
-
This actually helps me on a completely unrelated project. The (builtin) WorldToScreen method I have doesn't (seem to) generate useful values when the position isn't inside the view frustum (so something that was off-screen-leftish would show a direction of off-screen-upish).
-
Then you shouldn't need to do a whole lot of anything to register a new recipe type and point it at a subclass of the Furnace or Smelter classes. I'm not even sure you'd need a subclass, I haven't messed with it.
-
Why wouldn't they be? If you have two inputs, you may not be able to. But you need to look at the FurnaceRecipe and AbstractFurnaceRecipe class it extends, as well as portions of the rest of the class hierarchy. Exactly what you're doing is going to be important.
-
So.... go open the class definition for the class you're trying to instantiate.
-
If you want to use Bukkit, use Bukkit (or whatever the current name for that project is). If you want to use Forge, use Forge. They are not cross compatible and ForgeBukkit is basically dead.
-
The events no longer exist. You need to remove the feature from the biome. You can see how I did that for ores here: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/HarderOres.java#L206 (Most of it is a disgusting mess because of the specifics of ore features, but should give you something to start with).
-
Sets are like arrays and lists, except they don't have an order, don't allow duplicates, and have no "positional" notation. http://net-informations.com/java/cjava/list.htm I'm not sure how you missed that when learning programming, as the comparison between a shopping list and a grab bag should have been made at some point.
-
[1.16.1] Do a method to an entity every x amount of ticks
Draco18s replied to clearcut's topic in Modder Support
You need to attach a Capability to the entity in question to hold the data about that entity (eg. starting time) and then create a LivingUpdateEvent handler to count ticks. -
1.12 is no longer supported.
-
migrate world using blocks depricated in new mod version
Draco18s replied to Shade Blackwolf's topic in Modder Support
The MissingMappings<T> event. -
Note that 1.16 does not have an MCP snapshot, due to ongoing development of a new deobfuscation scheme called MSSS. MSSS is not ready yet and so you're going to run into more cases of functions having SRG names ("func_12345_a" and the like)
-
Post your log file. Its not so much that your block isn't generating correctly, but that there's an error with its blockstate or model or texture.
-
Because you told it to use the default state (NORTH) and haven't told it to base its directionality based on the player's facing. Go look at the FurnaceBlock.
-
Blocks do not play nice when they are larger than 1x1x1. Use multiple blocks and models.
-
[1.14.4] Override method from Block shows error? [SOLVED]
Draco18s replied to Zeher_Monkey's topic in Modder Support
Of course you can't override static methods, as Block.SomeFunc is always going to be part of the Block class -
[1.14.4] Override method from Block shows error? [SOLVED]
Draco18s replied to Zeher_Monkey's topic in Modder Support
It means you're not actually overriding a method. i.e. the signature (name, parameters, return type) don't match a method in the parent class. -
You can also select a type already present in your code and hit F4. Which will open the type hierarchy window, focused on the type you selected. You can then go up to the root class, Event, right click and "Focus On..." which will show the Event class and all sublcasses.