Java is Hard
Java is Hard
Last night, I tried to learn some Java. Turns out it's pretty hard.
I was looking for a plugin for Bukkit to make wool glow when powered, there did not seem to be any. So like a crazy person I decided to try and make one. Luckily there is a good tutorial on the basics of plugin development http://wiki.bukkit.org/HUGE_Plugin_Tutorial so using that, I made a plugin that makes wool blocks change to wood when powered. At the time (1AM) this felt like an amazing achievement. I then had a go at making the light level for that block change, much harder ! But by decompiling http://forums.bukkit.org/threads/mech-p ... -740.9601/ I found a way to do it, now wool blocks flash when powered and I am totally stuck on how to make the light persist.
At the risk of sounding entirely lame, this is what I love about programming, being stuck
I was looking for a plugin for Bukkit to make wool glow when powered, there did not seem to be any. So like a crazy person I decided to try and make one. Luckily there is a good tutorial on the basics of plugin development http://wiki.bukkit.org/HUGE_Plugin_Tutorial so using that, I made a plugin that makes wool blocks change to wood when powered. At the time (1AM) this felt like an amazing achievement. I then had a go at making the light level for that block change, much harder ! But by decompiling http://forums.bukkit.org/threads/mech-p ... -740.9601/ I found a way to do it, now wool blocks flash when powered and I am totally stuck on how to make the light persist.
At the risk of sounding entirely lame, this is what I love about programming, being stuck
Re: Java is Hard
I was going to learn Java just because of Minecraft but I gave up when my brain malfunctioned.
I also don't like how redstone looks on your texture pack...
I also don't like how redstone looks on your texture pack...
Re: Java is Hard
You should try Bukkit, it's actually pretty easy to do simple stuff like change blocks.EcazS wrote:I was going to learn Java just because of Minecraft but I gave up when my brain malfunctioned.
Then I do not recommend you use my texturepackEcazS wrote:I also don't like how redstone looks on your texture pack...
Re: Java is Hard
Spent 3 hours today trying to work out why blocks were not being lit on one side.
with it as
*goes to make glow in the dark pixel art*
for (int i = 0; i < 6; ++i){I changed the number of blocks that got light added from 6 to 18 and forgot to change this number.
with it as
for (int i = 0; i < blockList.length; ++i){It works perfectly !
*goes to make glow in the dark pixel art*
Re: Java is Hard
I learnt Java as my first programming language so might have a go at making a plugin!
EDIT: I agree it is hard to learn!
EDIT: I agree it is hard to learn!
I can't think of anything witty to put here!
Check out some of my projects on GitHub: https://github.com/DomTC
Check out some of my projects on GitHub: https://github.com/DomTC
Re: Java is Hard
I would recommend it ! Pretty funDomC wrote:I learnt Java as my first programming language so might have a go at making a plugin!
Indeed ! Not much documentation for developers really. I guess Eclipse tells you what methods are available.DomC wrote:EDIT: I agree it is hard to learn!
Re: Java is Hard
Also, do I recall you have a server I can sign up to?
Anyway minecraft is a great game!
Anyway minecraft is a great game!
I can't think of anything witty to put here!
Check out some of my projects on GitHub: https://github.com/DomTC
Check out some of my projects on GitHub: https://github.com/DomTC
Re: Java is Hard
I do, if you post your username I can whitelist you.DomC wrote:Also, do I recall you have a server I can sign up to?
Re: Java is Hard
OK,
My username is:
DomChester
Thanks
My username is:
DomChester
Thanks
I can't think of anything witty to put here!
Check out some of my projects on GitHub: https://github.com/DomTC
Check out some of my projects on GitHub: https://github.com/DomTC
Re: Java is Hard
Cool, thanks
I can't think of anything witty to put here!
Check out some of my projects on GitHub: https://github.com/DomTC
Check out some of my projects on GitHub: https://github.com/DomTC
Re: Java is Hard
Awesome - i am going to start on a plugin tonight after having a quick refresh of my Java!
Have you got any more ideas for plugins you will make? I can't wait to see what you can come up with!
Have you got any more ideas for plugins you will make? I can't wait to see what you can come up with!
I can't think of anything witty to put here!
Check out some of my projects on GitHub: https://github.com/DomTC
Check out some of my projects on GitHub: https://github.com/DomTC
Re: Java is Hard
Not at the moment, I like the idea of extending the redstone mechanic though.DomC wrote:Have you got any more ideas for plugins you will make? I can't wait to see what you can come up with!
Re: Java is Hard
This is via java?jacek wrote:So I made some progress
J6uqIaBgwgM
I should really learn it…
Also, what are the words that are glowing at the beginning?
Re: Java is Hard
"Bukkit" it's the name of the server wrapper mod thing.JelvinJS7 wrote:Also, what are the words that are glowing at the beginning?
Re: Java is Hard
No unless he joins the forum, makes a few less-than-useless posts and then asks for himselfKamal wrote:Can you please add my friend TacticalScrewUp to the server?
Re: Java is Hard
There a reason for that, you being difficult, or just you and your goofy self?jacek wrote:No unless he joins the forum, makes a few less-than-useless posts and then asks for himselfKamal wrote:Can you please add my friend TacticalScrewUp to the server?
Re: Java is Hard
Well the server is meant to be for forum membersJelvinJS7 wrote:There a reason for that, you being difficult, or just you and your goofy self?
Plus I will know how likely he is to follow the rules if he is a member here.