Everything posted by Draco18s
-
[1.12.x] Any Guides for Newbies?
No, because of the need for both a common side and a client side (how would I register the item models only on the client when all the methods are static?)
-
Build failed with an exception.
http://bfy.tw/DqFx
-
[1.12.x] Any Guides for Newbies?
Oh, sure. Absolutely. You could even register it as a static class and bypass the static -> instance redirection methods. The first one is static so I can reference it as EasyRegistry.registerItem, that method then calls Hardlib.proxy._registerItem
-
[1.12.x] Any Guides for Newbies?
I have them set up that way because of what the EasyRegistry is supposed to do: register stuff in a way that doesn't require I, the modder, to have to do much work in my main class: its flexible, its powerful, it makes distinctions. The interface-and-separate-classes makes more sense for a traditional proxy system because anything that would be in a "common" proxy should be in your main mod class.
-
[1.12.x] Any Guides for Newbies?
The annotation on the class is for static method event handler. Otherwise you have to register an instance manually.
-
[1.12.x] Any Guides for Newbies?
Yes. Create the class and register it as an event handler. Job done.
-
[1.12.x] Any Guides for Newbies?
Blocks work the same, except: You use the RegistryEvent.Register<Block> event. You have to create an ItemBlock instance of your block and register it during the Item registration event if you want the block to appear in the player's inventory at all. Models need to be registered during the ModelRegistryEvent and you call ModelLoader.setCustomModelResourceLocation(...) there. This is client-side-only. Proxies are how to distinguish between the physical client and physical server (the client, running single player, has an integrated logical server). You need two classes, a ClientProxy and a ServerProxy that both can be assigned to the same field in your main class, annotated with @SidedProxy It is recommended that you use an IProxy interface as the common type.
-
[1.12.1] Custom Criteria approach, registration and test method
1) Not currently. However, this works: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/EasyRegistry.java#L210-L222 2) Not sure what you mean, but feel free to take a look at some of my criterion https://github.com/Draco18s/ReasonableRealism/tree/1.12.1/src/main/java/com/draco18s/hardlib/api/advancement
-
[1.12]mcmod.info specify dependency version
The mcmod.info file isn't used for this, your @Mod annotation is. dependencies = "required-after:backslash[$version]" So you'd put 3.0.0, for $version. Include the ,
-
GL11 draw lines only limited amount of colors?
Color c = new Color(96, 149, 234, 1); GlStateManager.color(c.getRed(), c.getGreen(), c.getBlue(), c.getAlpha()); Um...why are you creating color objects at all? GlStateManager.color(96, 149, 234, 1); ? Also, I'm pretty sure 1 alpha is basically invisible.
-
Teleporter working in creative, but not in survival. (1.10.2)
That does not do what you think it does.
-
[1.10] Get drops when a BlockBreakHandler is used
I was pointing out how to fire the event, not providing the entire solution
-
[1.10] Get drops when a BlockBreakHandler is used
- [1.10] Get drops when a BlockBreakHandler is used
Whiiiich is what I suggested...- [1.10] Get drops when a BlockBreakHandler is used
Event event = new BlockEvent.HarvestDropsEvent(...); MinecraftForge.EVENT_BUS.fire(event); event.getDrops()- [1.12][Solved] Variation in player movement speed
The client takes input, converts that to motion, and sends position updates to the server. Yes.- [1.10] Get drops when a BlockBreakHandler is used
BlockBreakHandler is not a Forge or vanilla class. We need details.- 1.10 using EnumFacing with all 6 directions
Sigh. public static final PropertyDirection PROPERTYFACING = BlockHorizontal.FACING; Magic, you're done here. The property already exists, utilize it.- [1.12][Solved] Variation in player movement speed
This is due to the fact that the client does not inform the server about it's position change every tick, but rather once every couple of ticks.- How to force Minecraft to render a specific block
canUpdate()- [1.12] How to update every tick without events
You can still get the current value in the way that D7 said when drawing the hud.- Logic for harvestBlock onRightClick
No. Because you're bypassing the block-break system in PlayerInteraction.java- [1.12]Custom ItemStack NBT not saving
Yes. Do whatever it is you're doing on the server thread. If you can't, then no, you need packets.- [1.12]Custom ItemStack NBT not saving
try {EntityPlayer p = Minecraft.getMinecraft().player; You're doing everything on the client. The server then synchronizes everything and overwrites your changes.- [1.12]Custom ItemStack NBT not saving
Show more of your code. There are several reasons why this might fail, but in order to determine which one of those it is, we need to know where this code is. - [1.10] Get drops when a BlockBreakHandler is used
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.