Innectis Community Forum

Author Topic: TinyWE Copy/Paste/Cut  (Read 7717 times)

Nosliw

  • Retired Staff
  • Rainbow Member
  • *****
  • Posts: 1722
  • Gender: Male
  • You can't hurt me, I'm a Jelly Fish..
    • View Profile
    • Uber Island
TinyWE Copy/Paste/Cut
« on: October 15, 2014, 09:30:44 PM »
Its something I was thinking of doing, but never got around to it, but it has 2 parts, firstly:

/twcut - Similar to /twcopy, except it is stored separately and would move the entire region exactly, the issue with /twcopy is that some blocks are not permitted to be pasted. The cut would allow the moving of blocks from one point to another without putting them in/out of inventory, and can only pasted once, something along the lines of /twpaste -cut.

Second, the ability to copy/paste entities, if you do /twcopy, then it would try to paste entities in the same locations, IF you had them stored in your fishing rod moving thingy (or had spawn eggs, for some reason). And if you used /twcut, then it would also take them from your target location and move them. This is not only useful for animal farms, but also buildings with item frames. It could place item frames, and if possible (has items in inventory), it would put the items in the frames.


Bugs to be fixed (if not already)

As a little extra thing for Alpha to have fun with, an almost bug, the /twcopy can be rotated via /twclipboard, but when rotated at unusual degrees, it can sometimes distort, causing 2 blocks to try and share the same pasted location. If this does occur, not only will some blocks not have correct locations, leaving holes in a structure, but the two blocks that are pasted over the top of each other will both paste, meaning that it will paste one block, then next place a block over the top, pointless calculation, and moving items in/out of inventory.  This can be fixed with some code, but I never got around to it. It would be a pain to fix, but it can be done.

The next little bug thing is that rotating your clipboard will update the clipboards rotation live, meaning that if you rotate it 80 degrees, it will calculate the new location, then if you do it another 10, it will calculate it again. If you keep rotating it by non-right angled numbers, it will eventually distort. This can be fixed by storing the rotation of your clipboard, and adding to it each time you call -rotate, then calculate it, (but not store it), when you paste it.



Edit: I'm mainly doing this because I want to give Alpha more work to do >: )
« Last Edit: October 15, 2014, 09:32:53 PM by Nosliw »
  • Nosliw
    Nosliw
    Nosliw
I'm here to help.. With the following exception:



@EventHandler(priority = EventPriority.LOW)
public void onPlayerJoin(PlayerJoinEvent event) {
    Player player = event.getPlayer();
    if (player.getName().equals("SGT_ADZ") {
        player.kickPlayer("Yeah... Nah!");
        return;
    }
}

SGT_ADZ

  • Retired Staff
  • Rainbow Member
  • *****
  • Posts: 1766
  • Gender: Male
  • I'm kind of a big deal.
    • View Profile
Re: TinyWE Copy/Paste/Cut
« Reply #1 on: October 16, 2014, 07:28:24 AM »
Wasn't aware you were a Dev again?
  • SGT_ADZ
    SGT_ADZ
    SGT_ADZ
Twitter: @AMcLachlan1

Booking50

  • Goldy VIP
  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
Re: TinyWE Copy/Paste/Cut
« Reply #2 on: October 17, 2014, 01:12:16 AM »
Wasn't aware you were a Dev again?

Hes a Dev that isnt actually a Dev
  • Booking50
    Booking50
    Booking50

CanadianR

  • Server Moderator
  • Sr. Member
  • *****
  • Posts: 352
  • Beaver
    • View Profile
Re: TinyWE Copy/Paste/Cut
« Reply #3 on: October 17, 2014, 06:11:02 AM »
Interesting...very interesting...
  • CanadianR
    CanadianR
    CanadianR

Only Beaver in Innectis History

Moranine

  • Diamond
  • Newbie
  • *****
  • Posts: 24
  • New User :)
    • View Profile
Re: TinyWE Copy/Paste/Cut
« Reply #4 on: October 17, 2014, 02:19:31 PM »
Interesting...very interesting...
More interesting then that, how do they get the ****ing cream into cream filled donuts without breaking the donut????? I **** it up everytime!!
  • Moranine_
    Moranine_
    Moranine_

haspet

  • Goldy VIP
  • Full Member
  • ****
  • Posts: 176
  • Gender: Female
  • I'm back! (Does anyone remember me?)
    • View Profile
Re: TinyWE Copy/Paste/Cut
« Reply #5 on: October 17, 2014, 08:04:01 PM »
Interesting...very interesting...
More interesting then that, how do they get the ****ing cream into cream filled donuts without breaking the donut????? I **** it up everytime!!

off topic, but if you look at the side, you can see a hole in the donut with cream coming out. That's where they inject the creme into the donut. IDK how they make it hollow though.
  • Haspet
    Haspet
    Haspet
www.freerice.com
Discord: Haspet#2853
(Only adding people I know)

Snow_Owl82

  • Goldy VIP
  • Sr. Member
  • ****
  • Posts: 431
  • Gender: Male
  • doot
    • View Profile
How do they get cream into cream filled donuts?
« Reply #6 on: October 17, 2014, 08:26:31 PM »
if you change the subject, it becomes on-topic.

therefore:
As a side-note

this is worded like an announcement, sorta, not as a suggestion



thats how i felt
  • Snow_Owl82
    Snow_Owl82
    Snow_Owl82
i play the trumpet

chrisjones23

  • Goldy VIP
  • Sr. Member
  • ****
  • Posts: 471
  • User Council
    • View Profile
this is how snow
« Reply #7 on: October 17, 2014, 08:36:47 PM »
I used to do this for a bakery
  • chrisjones23
    chrisjones23
    chrisjones23

lillquake

  • Goldy VIP
  • Full Member
  • ****
  • Posts: 206
  • Gender: Female
  • Meme Master General
    • View Profile
Re: this is how snow
« Reply #8 on: October 17, 2014, 10:22:40 PM »
I used to do this for a bakery

Lives, today, have been changed. Forever.
  • lillquake
    lillquake
    lillquake
The difference between stupidity and genius is that genius has its limits.

Albert Einstein

Nosliw

  • Retired Staff
  • Rainbow Member
  • *****
  • Posts: 1722
  • Gender: Male
  • You can't hurt me, I'm a Jelly Fish..
    • View Profile
    • Uber Island
Re: TinyWE Copy/Paste/Cut
« Reply #9 on: October 20, 2014, 02:57:37 AM »
Wasn't aware you were a Dev again?
Ha, how does me posting a suggestion lead you to this?



Also following this random side-note, cream filled donuts? OMG, I gotta try these!!
  • Nosliw
    Nosliw
    Nosliw
I'm here to help.. With the following exception:



@EventHandler(priority = EventPriority.LOW)
public void onPlayerJoin(PlayerJoinEvent event) {
    Player player = event.getPlayer();
    if (player.getName().equals("SGT_ADZ") {
        player.kickPlayer("Yeah... Nah!");
        return;
    }
}