How can I add a Ender Dragon in Minecraft modding? - eclipse

I have been looking around the Internet, and no one seems to know (or care) about my question :P. I would like to know how to add a Ender Dragon mob into Minecraft. I am using Eclipse, and Youth Digital software. If you don't know what that is, just give me something to copy and paste. I'm pretty noob-ish at coding at stuff, so any help will be appreciated. Thanks!

In my opinion, you need to watch a few more tutorials and understand more of the basics such as item creation. You should also have a look to see the basic principles of Java. Stack Overflow is a great place to get advice on specific problems but I am afraid that they do not like broader problems such as the one you present here.
From your question I assume you are asking how to "spawn" in the Ender Dragon rather than "add it". For this you will need to place this snippet in a method linked to an event handler:
EntityDragon dragon = new EntityDragon(worldIn);
worldIn.spawnEntity(dragon);
where worldIn is the world argument from the method.
However, I suggest that you watch more tutorials on YT to get the basics, then have a look at other peoples' mod code on Github.
(Quark is a great example of some simple modding mechanics, so I suggest you trawl its source code -> https://github.com/Vazkii/Quark/tree/master/src/main/java/vazkii/quark)

Related

Note taking extension on vscode that helps programming?

I'm new to programming, during learning I face problems like I don't fully understand some part of codes in a complex program, therefore I need to write down what I don't understand somewhere, and retrieve/review codes&my questions later. Therefore I'm looking for a vscode extension or software that can implement those functions:
comment on code
overview on my written comments(I want to go through everything I write down in one place)
jump to the location in codes where I write this comment
Any suggestions? Thanks!

Coding Minecraft plugin (Jar)

I'm a newbie and I wanted to create a new plugin for my Minecraft server (a .jar file).
It has to make a whole tree (all the wood connected) fall breaking only one block.
I want it to be turned on or off using a specific in-game command.
Do you have any ideas?
Thank you!
I would start by looking at how to make a "hello world" plugin.
Find a tutorial online (there are many), for how to setup a basic plugin.
Once you have done that, have a look at this to setup an event listener.
https://bukkit.gamepedia.com/Event_API_Reference
Then, use this event instead of the example one
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/block/BlockBreakEvent.html
Lastly, loop through all the surrounding blocks and check if they are wood logs, if so: break them.
NOTE: This is not very detailed, this is more of a guidance for you to know what to lookup. Search around internet for how to do certain things. It will take time but stick to it. And feel free to ask questions when you are really stuck :)

Cocos2D game tutorials/game suggestions

I use Ray's link to learn Cocos2D, any other good links or tutorials I can use for developing?
Any suggestions about game developing?
Since you weren't too specific on what kind of links you wanted...
This is a bit philosophical but helped me stay focused on getting some simple games finished and polished rather than leaving them half done and moving to the next thing:
http://makegames.tumblr.com/post/1136623767/finishing-a-game
Here's a ton of links to all sorts of game related topics:
http://www-cs-students.stanford.edu/~amitp/gameprog.html
For cocos2d I'd suggest grabbing the full source code and opening up the cocos2d-ios workspace and then compiling and running all the test applications. They'll let you see a bunch of cocos2d's capabilities and give you a starting point to answer those "How would I do X..." type of questions. So after running the TileMapTest you'll know the different type of modes (ortho, iso, etc) it supports and know that there's sample code you look at to get it working.

Versioned cloud-based social code snippet management

It seems a lot to ask, but I'm looking for a cloud-based solution to managing code snippets. I am looking for:
Tags
User accounts (I want to be able to see all of my snippets on a single page)
syntax highlighting
versioning - myself or others should be able to edit my snippets to improve them and have revisions save so that I can go back and use an older version if I prefer.
straightforward UI with minimal advertising if any
Does anyone know of a solution which meets these requirements? If not, would anyone be interested in something like this? As a software engineer, after step zero (does it already exist), I'm perfectly willing to go onto step 1 (would other people use it? If so, make it).
www.codebarrel.com
it has everything you asked for
Sounds like Gist.
http://gist.github.com/
Except for the tags part. But it might be workable anyway.
I'm working on a site for this. The very rough (as in: barely works, but not even functional yet) initial version is here: https://github.com/jasongrout/snippets

How to make mockup screenshots without VB [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am looking for a program to make mockup screenshots with. I first found out I could do it with Visual Basic (uglier names I have yet to hear a programming language being called) from joelonsoftware.com. I don't want to start learning VB now, especially since I am still in the process of learning Java. I then found mockupscreens.com, with the searchstring "how to make mockup screenshots". But seeing as I am going to use this program quite infrequently, I don't think paying $80 for it is worth it.
The mockups I'd like to do would be mainly for Windows XP (perhaps also for GNOME, KDE and Mac OSX, but these are not top-priority).
Edit: Balsamiq is suggested, but this is also a non-free program.
Balsamiq
Visio works well, if you have it.
Personally, I like paper and a pen. Then I can't get bogged down in the LOOK of it, and go more for the usability and function. Same with websites.
Once you have the form infront of a customer, you have zero room to move - it you dont deliver it pixel-perfect, they get..... angry. :)
You don't have to learn the language to use the visual forms designer from Visual Studio to create mockups. Furthermore, the Express Edition of Visual Studio is freely available in several languages, namely VB, C# and C++. Take your pick. All ship with the same forms designer that generates backend code in one of the languages. But if you only need the designer, the code might not be relevant for you.
Microsoft Visio used to come with a template containing common Windows UI elements for this purpose. I don't know if it still does.
Jeff Attwood posted about this on CodingHorror - where he mentions Powerpoint prototyping
pen and paper, or if possible, whiteboard. Once you have something you personally think could work I'd go for as rough a computerized model as you can so you don't spend time agreeing font size before the workflow etc is done. The tool I have used here is my visual designer of Visual Studio (it doesn't look too good with screenshots, only good enough to convey what you'd like to build).
Pencil (runs within firefox)
As suggested, C# Express would be well for this, as like VB, it has a GUI designer, but it is also syntactically similar to Java, so - given what you are trying to learn and do with this, it might be a nice fit.
There is a pretty exhaustive list here:
http://c2.com/cgi/wiki?GuiPrototypingTools
Important point is whether the tool has "black&white" (or "hand-drawn") skin for your mockups, as already commented by others. Many of the tools (including my own, MockupScreens) do.
wxGlade would work as well, plus it's free software.
http://balsamiq.com/ was already mentioned, but I want to explain why I like it.
It will allow you to sketch up a screenshot, and it still looks like a pen and paper version, or a whiteboard discussion.
If you get to detailed on your screenshot, then the customer thinks you are "done" and does not understand whats taking you so long to finish the project. So this "sketchyness" serves as another layer of abstraction.
MockupUI is another one, but its mockups don't look like hand-drawn. They look like the real thing and with real data. It lets you draw wireframes as well as native widgets inheriting their appearance from your OS configuration (aka Windows visual style).
About high-fidelity mockups: The risk that a customer thinks that it's "already done" is minimal as long as you do your mockups during the design specification phase of your project (that's before starting to code). On the contrary, a sketch may be too abstract for the customer to digest, unless he is a software designer too. Sketches are for developers not customers.
Wireframes (or sketches) and mockups are not the same thing and they have different uses. One is to explain functionality, the other is a representation of what the product will look like. Check out Yisela's post about the difference between wireframes and mockups.
Your question was about mockup screenshot software, but you ended-up buying a pretty powerful wireframing software.