At 5:37 you do "view.getRenderers().clear()", however, the getRenderers method only returns a copy of the renderers. So calling the clear method doesn't actually remove them. To remove them you need to do for (MapRenderer renderer : view.getRenderers()) view.removeRenderer(renderer);
Interesting, I might watch this later today. Your videos are awesome mate, keep it up! Your the one who got me started with spigot plugin development just over a year ago now and I’m so happy with where that’s lead. Thank you so much for what you do!
I usually never comment on youtube, but thank you so much for these in-depth step-by-step explanations. I was in so much trouble and couldn't find anything online to fix my problems, but your video taught me exactly how everything works. Good job
You could just use the PersistentDataContainer of the ItemStack. You could get all TileEntities in the ChunkLoadEvent then check if they are of type ItemFrame then get the ItemStack content, check the PDC and initialize it accordingly (if not initialized already).
Great vid. Would it be possible to maybe do another episode on maps or do you have any links to some good resources on developing maps. I started doing some work to extend its functionality like keeping the images after the server restarts and having bigger images being split up into several maps. I quickly became stuck and didn't know what to do next. All depends on what people wanna see, this is just my input . Thanks in advance.
@@QuberCubes I had to do this, basically, make the recipe have the normal version of the items like the "superstick" would just be a normal stick and then u can listen for the crafting Item event, and then when it happens to make sure that the items in the crafting table items have that customDisplayName of "superstick" or item meta and if they don't cancel the event but if they do let it happen
I got a question about scoreboards if anyone can help. Is there a way to edit a line of what’s already on a scoreboard, or do you have to remake the whole scoreboard every time you want to change something about it (e.g timer or team a player is on).
You can update the title of the scoreboard every x ticks, however if you want to change the score text you would need to resend the whole scoreboard to the player. If you are using it for a timer I typically just update the title
instantly tried it out, works for me. i wonder if you can update the image on the map, cause then it would be possible to play a really slow video on your map. or is this to laggy to play?
@@CodedRed i am currently trying to make 2 different map metas, and then in a for loop, i change the meta from an map to an other map meta, and then 10 seconds later, i change to an other meta again to create like an gif. Edit: it doesnt work, the first meta change works, but then the thread stops responding and i get an huuuuge spigot error
@@jw-lr5xr You wouldn't have to change the MapMeta? Unless I am thinking about this wrong, all you would need to do is change what image it is drawing on the canvas. `canvas.drawImage(0, 0, image);` I would go about this by splitting the gif into multiple images. Save those images in a Map/list then every 10ticks (1/2 a second) draw the new image on the canvas. You would need to change the `if(done)` to a counter of some sort. Since the render() method runs every tick, have an int++ every tick then on every 10th tick run the method otherwise return;. Hope that all makes sense, just woke up haha. Keep in mind, maybe every 1/2 second is too fast or too slow. You would have to play around with it :)
I have an another version more complete which permit to use click event on map and custom images which change when a changement is detected on a web page like youtube channel. Moreover images are rescale in a specific size according by the number of itemframe.
Good work! I also have a version where you can put the dimensions you want to use for the image, lets say 2x2 which would then split your image 4 ways onto 4 different maps. I was gonna make an addition to this video about it. However, your version changes when an image if a web page changes? That is very awesome!
If it isn't too difficult, I would love to see a tutorial on how to add multiple worlds. edit: i figured out how to do it by looking at multiverse core code
At 5:37 you do "view.getRenderers().clear()", however, the getRenderers method only returns a copy of the renderers. So calling the clear method doesn't actually remove them. To remove them you need to do
for (MapRenderer renderer : view.getRenderers())
view.removeRenderer(renderer);
This is true ^ Please go ahead and change the code to the for loop. It looks like they changed the getRenderer() method.
@@CodedRed lmfao this is gonna be confuing implememnting the fix. Without vid lmfao anyways great vid m8 love ur channel its so helpful
@@CodedRed also is there any built in librarries, for me to select a part of the image so i can display an image over multiple maps?
Interesting, I might watch this later today. Your videos are awesome mate, keep it up! Your the one who got me started with spigot plugin development just over a year ago now and I’m so happy with where that’s lead. Thank you so much for what you do!
That's awesome! So happy to hear this, thank you!
I usually never comment on youtube, but thank you so much for these in-depth step-by-step explanations. I was in so much trouble and couldn't find anything online to fix my problems, but your video taught me exactly how everything works. Good job
Can't believe I'm this early. I love this series so much. It helps me a lot.
I been watching your videos none stop. Keep it up my guy
This is epic!
You deserve more for this
Long time no see. Nice to see you back!
I love your vids man I’m a fan and I freaking thank you for these awesome vids❤️
Oh damn, this will be useful for making a plugin such as bingo.Thanks!
Hey I saw the source code of your Bingo plugin while working on mapviews. Nice work!
You could just use the PersistentDataContainer of the ItemStack.
You could get all TileEntities in the ChunkLoadEvent then check if they are of type ItemFrame
then get the ItemStack content, check the PDC and initialize it accordingly (if not initialized already).
Yes you definitely could. Soon I will post a video on persistent data containers, didn’t want to throw 2 things in one video.
very interesting great and helpfull video! :D thank you so much :D
Thanks buddy, keep up with your work.
Thanks all your episodes are very helpful
Great vid. Would it be possible to maybe do another episode on maps or do you have any links to some good resources on developing maps. I started doing some work to extend its functionality like keeping the images after the server restarts and having bigger images being split up into several maps. I quickly became stuck and didn't know what to do next. All depends on what people wanna see, this is just my input
. Thanks in advance.
THE LEGEND IS BACK
Welcome back Legend
Love the vids m8 its amazing
HE FINALLY UPLOADED LMAOOOO
Oh you uploaded, nice!
Can't wait to see new uploads also crafting woth customitem stacks tutorial please
Could you give me an example of what you're looking for :3
@@CodedRed like how to create a special sword by using like a stick named Super stick or something like that
@@CodedRed can you also do a video on how to save blocks / structures to files and how to load them back in?
@@QuberCubes I had to do this, basically, make the recipe have the normal version of the items like the "superstick" would just be a normal stick and then u can listen for the crafting Item event, and then when it happens to make sure that the items in the crafting table items have that customDisplayName of "superstick" or item meta and if they don't cancel the event but if they do let it happen
@@dlfdragon973 yes but how would I make the item appear in the item display area?
Hello CodedRed, Ever since I watch your video, I can't stop watching them. I've got a suggestion. Could you make a tutorial on how to make ranks?
Woah!
Hello love all your tutorials but what version of Java should I code the plugins in and what do you recommend for normal Java applications. Thanks
but what is with an 3x3 Card? or something special
How to make big pictures?
Nice video, but is there a way to do it on larger maps apart from making images with a part of the map and putting that together?
Yes there is! Maybe I’ll make the next video about it :)
I got a question about scoreboards if anyone can help. Is there a way to edit a line of what’s already on a scoreboard, or do you have to remake the whole scoreboard every time you want to change something about it (e.g timer or team a player is on).
You can update the title of the scoreboard every x ticks, however if you want to change the score text you would need to resend the whole scoreboard to the player. If you are using it for a timer I typically just update the title
@@CodedRed thanks!
instantly tried it out, works for me. i wonder if you can update the image on the map, cause then it would be possible to play a really slow video on your map. or is this to laggy to play?
The render() method runs every single tick. You could try and update the image. Just keep in mind updating images every tick will cause a lil lag.
@@CodedRed i am currently trying to make 2 different map metas, and then in a for loop, i change the meta from an map to an other map meta, and then 10 seconds later, i change to an other meta again to create like an gif.
Edit: it doesnt work, the first meta change works, but then the thread stops responding and i get an huuuuge spigot error
@@jw-lr5xr You wouldn't have to change the MapMeta? Unless I am thinking about this wrong, all you would need to do is change what image it is drawing on the canvas.
`canvas.drawImage(0, 0, image);`
I would go about this by splitting the gif into multiple images. Save those images in a Map/list then every 10ticks (1/2 a second) draw the new image on the canvas. You would need to change the `if(done)` to a counter of some sort. Since the render() method runs every tick, have an int++ every tick then on every 10th tick run the method otherwise return;. Hope that all makes sense, just woke up haha.
Keep in mind, maybe every 1/2 second is too fast or too slow. You would have to play around with it :)
@@CodedRed ok, i definetly try this. I just wasnt sure if the image on the map gets updated if i change the way it was created. Thanks for responding
Hi, Anyone knows what is the method more commonly called "update" for Entity NMS in spigot 1.16.4? Because I'm not finding it anywhere.
Hello, working this on 1.8 ? or not
I have an another version more complete which permit to use click event on map and custom images which change when a changement is detected on a web page like youtube channel. Moreover images are rescale in a specific size according by the number of itemframe.
Good work! I also have a version where you can put the dimensions you want to use for the image, lets say 2x2 which would then split your image 4 ways onto 4 different maps. I was gonna make an addition to this video about it. However, your version changes when an image if a web page changes? That is very awesome!
@@CodedRed what do u mean by version ?
Very good! Thanks!!
Can you show how to give "custom players" an AI? ^^
If it isn't too difficult, I would love to see a tutorial on how to add multiple worlds.
edit: i figured out how to do it by looking at multiverse core code
First pog lol
o.O That was fast
@@CodedRed 8 seconds lol