PreciousStones

PreciousStones

269k Downloads

allow-place field pre-enabling source stone to be placed in no-place setting world.

Esfekia opened this issue ยท 2 comments

commented

Hi Guys,

My intention: Create a prevent-place/destroy-everywhere world with pedestals placed in specific parts, where a player can place a relic to activate a 20 radius field that he can place and destroy.

I want the players to be able to place the relic only on the pedestal, so that they are limited to the areas(temples) i assign.

Here are the two stones I used for this:

- title: Pedestal
  block: '35:15'
  radius: 0
  price: 200
  refund: 100
  limits:
  - 1
  - 1
  - 1
  - 1
  - 1
  - 1
  - 1
  custom-height: 2
  ^allow-place: true
  ^allow-destroy: true
  prevent-vehicle-destroy: true
  prevent-enderman-destroy: true
  prevent-explosions: true
  prevent-tnt-explosions: true
  no-conflict: true
  no-player-place: true
  visualize-on-src: true
  worldguard-repellent: true
  mask-on-disabled: 80

(as you can see, radius is 0 with custom height of 2, making sure that the relic can only be placed on the block above the pedestal. players can also place other things, but that is not a problem.)

- title: Relic
  block: '35:1'
  radius: 20
  price: 200
  refund: 100
  limits:
  - 1
  - 1
  - 1
  - 1
  - 1
  - 1
  - 1
  custom-height: 256
  ^allow-place: true
  ^allow-destroy: true
  visualize-on-src: true
  worldguard-repellent: true
  mask-on-disabled: 80

Every single block i try to place outside the pedestal, it doesn't work as intended. I can place dirt stone etc on the pedestal as intended. I can place the Relic on the Pedestal as intended.

The Issue: I am able to place the relic everywhere in the world, as if the prevent-place/destroy-everywhere does not work on it. The relic itself has built in ^allow-place: true, however should this not work for the field it creates, once it is placed, and not the split milisecond BEFORE its placed, allowing it to work?

I dont want relics to be placed anywhere other than the 1 block above the pedestal.

Am I doing something wrong or is this a bug?

commented

Phaed, I was able to make it so that the the relic can only be placed above the pedestal. However now the issue is this:

In my case, I want the relics field to be larger than the pedestals. When the pedestal has Radius 1 and height 3, and I want the relic to have a radius 20 and unlimited height, it tells me I cannot place that FIELD there. Is this intended, where the plots field cannot be bigger than the parent?

commented

Add this flag to your relic field:

allowed-only-inside: ["Pedestal"]

http://wiki.sacredlabyrinth.net/index.php/Field_Flag_Reference#allowed-only-inside