breakinblocks / Plonk

A Minecraft mod that lets you place items down anywhere https://www.curseforge.com/minecraft/mc-mods/plonk https://modrinth.com/mod/plonk
MIT License
3 stars 5 forks source link

Rotate items upwards #10

Open BlueAgent opened 3 years ago

BlueAgent commented 3 years ago

Suggested here Image of items standing upright in Minecraft: Story Mode

How to apply? Possibly a tool mode that lets you choose a "Render Type" and apply it. Probably have to re-work the render type system.

jkPlayer998 commented 3 years ago

The Item tool should be something simple ( possibly a regular stick or something similar).

BlueAgent commented 3 years ago

It's likely going to be a custom item because it's gonna have to store some extra data:

Also so people won't get confused when they accidentally use a stick on the placed items and it doesn't pick up stuff.

jkPlayer998 commented 3 years ago

Ok,the but it still should be easy to craft. I have a question that is not related to this. I want to get into coding and don't know how, and I was wondering how you started and if you have any tips?

BlueAgent commented 3 years ago

Kinda forgotten but I remember just diving right at some point in school, just learning on a need to know basis. Did hear there's some good tutorials by McJty though, maybe you could check those out? They are for 1.15 however, so be careful. Since then things have changed e.g. WorldGen, moved/renamed classes. The latest video in the playlist explains some of the changes in 1.16 (world gen changed in 1.16.2 btw).

Recommend working on the latest minecraft version (1.16.5) and using an IDE like Intellij or Eclipse.

Don't think this mod is the best example so I wouldn't reference this for learning purposes. Some bad things are done like implementing ISidedInventory on the tile entity instead of using capabilities (mainly cause I wanna make it easy to port changes from 1.7.10) and not using deferred registration and the bounding box code is a massive hack.

If you have more questions it's probably best to join the Minecraft Mod Development discord since they are friendly to people starting out and the Minecraft Forge discord requires you already have some decent knowledge of Java.

jkPlayer998 commented 3 years ago

Thank you so much. Now that I am starting to learn java and oop, how much does each version of minecraft and forge change in terms of code?

BlueAgent commented 3 years ago

I can't really say there's a general rule for it. There were some major changes in the 1.9 update and the 1.13 update 1.16.2 iirc.

jkPlayer998 commented 3 years ago

So I won't need to completely rewrite a mod when a new version comes out?

BlueAgent commented 3 years ago

It depends on how much changes where made in an update, sometimes you might need to rewrite a lot. Depends on Mojang and Minecraft Forge

jkPlayer998 commented 3 years ago

Ok thanks, I followed you so I can see how the development of the mod goes, because it has a lot of decoration possibilities

BlueAgent commented 3 years ago

Oh if you wanna follow a project you can watch the repository, that'll give notifications for any updates for issues, pull requests, etc. I don't actually know what following a user does.

jkPlayer998 commented 3 years ago

Ok, hope it goes well