manux
New member
Hi,
I'm trying to have a custom block disappear after a short time.
The only way I was able to make this work so far is by upgrading the block to an air block with UpgradeRated:
But UpgradeRated.Rate is random. I'd like it to disappear after like 5 seconds or so, but I always get a random time that is too long and there doesn't seem to be any way to control that. I tried with rates of 1, 2, 3, but it will just set a longer random time.
With the PlantGrowing class, we have a bit more control on the timer, we can set PlantGrowing.IsRandom to false, and the timer seems more reliable, but sadly when I try to use PlantGrowing with PlantGrowing.Next = "air", the game spits an error on load that it can't find the block "air". Seems like the air block is treated in special way under the hood...
I've also tried making a new custom air block, which visually works and doesn't give an error on load with PlantGrowing, but it leaves an invisible block there, and you can't build anything where it is, and can't destroy it. The regular air block does not do that, it just creates air.
Does anyone know of a better way to do this, or commands to better control the timer of UpgradeRated?
I'm trying to have a custom block disappear after a short time.
The only way I was able to make this work so far is by upgrading the block to an air block with UpgradeRated:
Code:
<property name="UpgradeRated.ToBlock" value="air"/>
<property name="UpgradeRated.Rate" value="0"/>
With the PlantGrowing class, we have a bit more control on the timer, we can set PlantGrowing.IsRandom to false, and the timer seems more reliable, but sadly when I try to use PlantGrowing with PlantGrowing.Next = "air", the game spits an error on load that it can't find the block "air". Seems like the air block is treated in special way under the hood...
I've also tried making a new custom air block, which visually works and doesn't give an error on load with PlantGrowing, but it leaves an invisible block there, and you can't build anything where it is, and can't destroy it. The regular air block does not do that, it just creates air.
Does anyone know of a better way to do this, or commands to better control the timer of UpgradeRated?